fix: use new code center
This commit is contained in:
parent
06279b1be1
commit
d309579195
@ -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');
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user