This commit is contained in:
2026-03-27 13:24:04 +08:00
parent c6c262169d
commit 7d3e6654fd
17 changed files with 2653 additions and 747 deletions

View File

@@ -60,7 +60,7 @@ module.exports = {
assetsDir: 'static',
productionSourceMap: false,
devServer: {
// public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号
port: '8080',
open: true,
@@ -77,7 +77,16 @@ module.exports = {
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
},
compress: false, // 💡 关键:禁止压缩,否则 SSE 流会被攒着不发
// 增加超时时间,防止长连接被代理提前掐断
proxyTimeout: 10 * 60 * 1000,
timeout: 10 * 60 * 1000
},
'/public': {
target: 'https://submission.tmrjournals.com/',
changeOrigin: true
}
}
},