clay commit : 小修改

This commit is contained in:
clay
2022-11-21 23:41:28 +08:00
parent f1f40f0938
commit 25ce022aef
13 changed files with 82 additions and 41 deletions

View File

@@ -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