diff --git a/txw-mhzc-web/vue.config.js b/txw-mhzc-web/vue.config.js index 42cc310..580dd58 100644 --- a/txw-mhzc-web/vue.config.js +++ b/txw-mhzc-web/vue.config.js @@ -288,6 +288,12 @@ module.exports = { // Vue CLI prepareProxy 用 pathname.match(代理键) 判断;键写 '/mhzc' 会变成匹配路径里任意位置的 /mhzc, // 会误伤 SPA 路由 /view/mhzc/...,刷新时整页请求被转发到后端导致 Proxy error。必须用 ^ 限定为路径前缀。 proxy: { + // 阶段 1 收尾 BUG-C:auth-refactor.js 调 /auth/loginByPassword(txw-cloud 新栈)。 + // 8080 是新 gateway(auth 9200 / system 9201 都在它后面),不配这条会落到 SPA fallback。 + '^/auth': { + target: 'http://localhost:8080', + changeOrigin: true, + }, '^/sso': { // target: 'http://localhost:9300', // target: 'http://carbon.liantu.tech',