This commit is contained in:
@fawn-nine
2023-07-10 13:22:49 +08:00
parent 1f7e3c484b
commit 2f77ea87d4
7 changed files with 142 additions and 86 deletions

View File

@@ -4,23 +4,23 @@ module.exports = {
assetsDir: 'static',
productionSourceMap: false,
devServer: {
public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号
// port: '8080',
// open: true,
// overlay: {
// warnings: false,
// errors: true
// },
// proxy: {
// '/api': {
// // target: 'https://www.tmrjournals.cn',
// target: 'https://submission.tmrjournals.com/',
// changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// }
// }
// }
// public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号
port: '8080',
open: true,
overlay: {
warnings: false,
errors: true
},
proxy: {
'/api': {
// target: 'https://www.tmrjournals.cn',
target: 'https://submission.tmrjournals.com/',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
},
// devServer: {