feat: 完善登录角色切换和本地代理
This commit is contained in:
+3
-2
@@ -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/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user