|
|
|
|
@ -13,7 +13,7 @@ const name = defaultSettings.title || '四世同堂业务管理系统' // page t
|
|
|
|
|
// For example, Mac: sudo npm run
|
|
|
|
|
// You can change the port by the following methods:
|
|
|
|
|
// port = 9528 npm run dev OR npm run dev --port = 9528
|
|
|
|
|
const port = process.env.port || process.env.npm_config_port || 8001 // dev port
|
|
|
|
|
const port = process.env.port || process.env.npm_config_port || 8011 // dev port
|
|
|
|
|
|
|
|
|
|
// All configuration item explanations can be find in https://cli.vuejs.org/config/
|
|
|
|
|
module.exports = {
|
|
|
|
|
@ -46,7 +46,7 @@ module.exports = {
|
|
|
|
|
//before: require('./mock/mock-server.js'),
|
|
|
|
|
proxy: {
|
|
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
|
|
target: 'https://sstt.ali251.langye.net/',
|
|
|
|
|
target: 'http://sstt.ali251.langye.net/',
|
|
|
|
|
changeOrigin: true, //配置跨域
|
|
|
|
|
pathRewrite: {
|
|
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
|
|
|