提交代码
This commit is contained in:
19
vue.config.js
Normal file
19
vue.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
lintOnSave: false,
|
||||
publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
|
||||
devServer: {
|
||||
port: 3002,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: 'http://192.168.1.31:10215', //数据中心
|
||||
|
||||
// target: "http://192.168.1.31:10215", // 海南
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
"^/api": "",
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user