feat: 完善登录角色切换和本地代理

This commit is contained in:
湛兮
2026-06-12 10:20:10 +08:00
parent da3bbb09e1
commit 0503ec2e0a
6 changed files with 160 additions and 7 deletions
+3 -2
View File
@@ -11,9 +11,10 @@ export default defineConfig({
port: 4301,
proxy: {
'/api': {
target: process.env.DEVOPS_API_PROXY_TARGET ?? 'https://devops.mrzhan.top',
target: process.env.DEVOPS_API_PROXY_TARGET ?? 'http://localhost:4300',
changeOrigin: true,
secure: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},