You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const { defineConfig } = require("@vue/cli-service");
|
|
|
|
module.exports = defineConfig({
|
|
|
|
transpileDependencies: true,
|
|
|
|
});
|
|
|
|
const path = require('path')
|
|
|
|
const port = 8088 // 端口
|
|
|
|
function resolve(dir) {
|
|
|
|
return path.join(__dirname, dir)
|
|
|
|
}
|
|
|
|
module.exports = {
|
|
|
|
devServer: {
|
|
|
|
port: port,
|
|
|
|
open: true,
|
|
|
|
client: {
|
|
|
|
overlay: false,
|
|
|
|
},
|
|
|
|
proxy: {
|
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
|
//target: `http://localhost:8080/`,
|
|
|
|
target: `http://130.252.101.48:18081/portal-gateway/`,
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|