!18 大娃代理设置

Merge pull request !18 from 覃杰/auto-8533815-develop-1629103572782
This commit is contained in:
覃杰 2021-08-16 08:46:47 +00:00 committed by Gitee
commit 321e16b5b8
1 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@ const GitRevision = new GitRevisionPlugin()
const buildDate = JSON.stringify(new Date().toLocaleString())
const createThemeColorReplacerPlugin = require('./config/plugin.config')
function resolve (dir) {
function resolve(dir) {
return path.join(__dirname, dir)
}
@ -94,15 +94,15 @@ const vueConfig = {
devServer: {
// development server port 8000
port: 8000
port: 8000,
// If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
// proxy: {
// '/api': {
// target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// ws: false,
// changeOrigin: true
// }
// }
proxy: {
'/dawa': {
target: 'http://a.3a6.cn/dawa/',
ws: false,
changeOrigin: true
}
}
},
// disable source map in production