fix: use new code center

This commit is contained in:
xion 2025-02-18 17:48:09 +08:00
parent 06279b1be1
commit d309579195
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ export const useLoginStore = create<LoginStore>((set, get) => {
if (redirect) {
window.location.href = redirect;
} else {
window.location.href = basename;
window.location.href = basename ? basename + '/' : '/';
}
} else {
message.error(res.message || 'Request failed');

View File

@ -66,12 +66,12 @@ export default defineConfig({
changeOrigin: true,
},
'/api': {
target: 'http://localhost:4002',
target: 'http://localhost:4005',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
'/api/router': {
target: 'ws://localhost:4002',
target: 'ws://localhost:4005',
changeOrigin: true,
ws: true,
rewriteWsOrigin: true,