|
@@ -36,17 +36,7 @@ module.exports = {
|
|
warnings: false,
|
|
warnings: false,
|
|
errors: true
|
|
errors: true
|
|
},
|
|
},
|
|
- proxy: {
|
|
|
|
- // change xxx-api/login => mock/login
|
|
|
|
- // detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
|
- [process.env.VUE_APP_BASE_API]: {
|
|
|
|
- target: `http://localhost:8082`,
|
|
|
|
- changeOrigin: true,
|
|
|
|
- pathRewrite: {
|
|
|
|
- ['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ before: require('./mock/mock-server.js')
|
|
},
|
|
},
|
|
configureWebpack: {
|
|
configureWebpack: {
|
|
// provide the app's title in webpack's name field, so that
|
|
// provide the app's title in webpack's name field, so that
|