处理偶尔循环登录问题

This commit is contained in:
2025-08-23 17:51:36 +08:00
parent 9b1947f7c0
commit 81dc87c388
8 changed files with 884 additions and 579 deletions
+11 -11
View File
@@ -23,17 +23,17 @@ export default defineConfig({
host: "0.0.0.0", //设置地址:http://localhost
port: 4000, // 设置服务启动端口号
hmr: false, // 关闭热更新
// open: true, // 设置服务启动时是否自动打开浏览器
// cors: true, // 允许跨域
// proxy: {
// '/api': {
// target: 'http://dining.lzyyj.com/prod-api',//代理的地址
// changeOrigin: true,
// // 路径重写 pathRewrite无效使用rewrite
// // pathRewrite: { '/api': '' // 用'/api'代替target里面的地址 },
// rewrite: path => path.replace(/^\/api/, '')
// }
// }
open: true, // 设置服务启动时是否自动打开浏览器
cors: true, // 允许跨域
proxy: {
'/dev-api': {
target: 'http://localhost:8195',//代理的地址
changeOrigin: true,
// 路径重写 pathRewrite无效使用rewrite
// pathRewrite: { '/api': '' // 用'/api'代替target里面的地址 },
rewrite: path => path.replace(/^\/dev-api/, '')
}
}
},
resolve: {
alias: {