2022-02-28 15:53:55 +08:00

21 lines
619 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//本地开发时使用,打包部署时请使用环境变量配置
// process.env.VUE_APP_QIEZI_HOST = "http://localhost:8081";
// process.env.VUE_APP_QIEZI_KEY = "d862c12a68ad4d579c6066ac2f064a07";
module.exports = {
publicPath: "/manage",
devServer: {
proxy: {
"/qiezi/api": {
//这里最好有一个 /
target: "http://localhost:8088", // 服务器端接口地址
ws: true, //如果要代理 websockets配置这个参数
// 如果是https接口需要配置这个参数
changeOrigin: true, //是否跨域
pathRewrite: {
"^/qiezi/api": "/qiezi/api",
},
},
},
},
};