This commit is contained in:
OrangeM21
2020-03-20 00:46:35 +08:00
parent bfa2065ba3
commit b5ac73e57f
10 changed files with 11109 additions and 78 deletions

View File

@@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || 'vue Admin Template' // page title
const name = defaultSettings.title || 'JumpServer' // page title
// If your port is set to 80,
// use administrator privileges to execute the command line.
@@ -31,12 +31,24 @@ module.exports = {
productionSourceMap: false,
devServer: {
port: port,
open: true,
host: 'localhost',
open: false,
overlay: {
warnings: false,
errors: true
},
before: require('./mock/mock-server.js')
proxy: {
// change xxx-api/login => mock/login
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
}
},
after: require('./mock/mock-server.js')
},
configureWebpack: {
// provide the app's title in webpack's name field, so that