clay commit : 小修改
This commit is contained in:
@@ -29,21 +29,21 @@ module.exports = {
|
||||
productionSourceMap: true,
|
||||
// webpack-dev-server 相关配置
|
||||
devServer: {
|
||||
// host: '0.0.0.0',
|
||||
// // port: port,
|
||||
// port: 8080,
|
||||
// open: true,
|
||||
// proxy: {
|
||||
// // detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
// [process.env.VUE_APP_BASE_API]: {
|
||||
// target: `http://localhost:8085`,
|
||||
// // target: `http://hchyunapi.tomey.live`,
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: {
|
||||
// ['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
host: '0.0.0.0',
|
||||
// port: port,
|
||||
port: 8080,
|
||||
open: true,
|
||||
proxy: {
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: `https://sist.swjtu.edu.cn/`,
|
||||
// target: `http://hchyunapi.tomey.live`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: '/dev-api'
|
||||
}
|
||||
}
|
||||
},
|
||||
disableHostCheck: true
|
||||
},
|
||||
// 强制内联CSS
|
||||
|
||||
Reference in New Issue
Block a user