fix: config

This commit is contained in:
熊潇 2025-05-28 20:20:14 +08:00
parent 26be3b85e8
commit 60ea5abe45

View File

@ -16,10 +16,12 @@ let target = process.env.VITE_API_URL || 'https://localhost:51015';
const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' }; const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' };
let proxy = { let proxy = {
'/root/center/': { '/root/center/': {
target: `${target}/root/center/`, target: `${target}`,
secure: false,
}, },
'/user/login/': { '/user/login/': {
target: `${target}/user/login/`, target: `${target}`,
secure: false,
}, },
'/api': apiProxy, '/api': apiProxy,
'/client': apiProxy, '/client': apiProxy,