最后一版

This commit is contained in:
clay
2022-11-25 22:06:40 +08:00
parent c2ced3d62a
commit 0a2a804ca8
2 changed files with 34 additions and 33 deletions

View File

@@ -32,19 +32,19 @@ module.exports = {
// 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]: ''
// }
// }
// },
// disableHostCheck: true
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
// 默认true: 使用CSS分离插件 ExtractTextPlugin采用独立样式文件载入不采用 <style> 方式内联至 html 文件中