diff --git a/txw-mhzc-web/vue.config.js b/txw-mhzc-web/vue.config.js index 580dd58..c2f5e32 100644 --- a/txw-mhzc-web/vue.config.js +++ b/txw-mhzc-web/vue.config.js @@ -294,6 +294,15 @@ module.exports = { target: 'http://localhost:8080', changeOrigin: true, }, + '^/sso/did/pub': { + // 阶段 2 BUG-D:login.vue 的 DID 扫码轮询(每 2s 一次)打 /sso/did/pub/backresult/login, + // 老栈 target 是 cciw.com.cn 生产,本地 reqId/cookie 校验失败会一直返回"密码错误"。 + // 新栈 nacos 白名单有 /auth/did/pub/**,把 /sso/did/pub/** 改写到 8080 的 /auth/did/pub/**。 + // 必须放在 '^/sso' 之前,否则会被广匹配的 '^/sso' 截走。 + target: 'http://localhost:8080', + changeOrigin: true, + pathRewrite: { '^/sso/did/pub': '/auth/did/pub' }, + }, '^/sso': { // target: 'http://localhost:9300', // target: 'http://carbon.liantu.tech',