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) {
|
if (redirect) {
|
||||||
window.location.href = redirect;
|
window.location.href = redirect;
|
||||||
} else {
|
} else {
|
||||||
window.location.href = basename;
|
window.location.href = basename ? basename + '/' : '/';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
message.error(res.message || 'Request failed');
|
message.error(res.message || 'Request failed');
|
||||||
|
@ -66,12 +66,12 @@ export default defineConfig({
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:4002',
|
target: 'http://localhost:4005',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
||||||
},
|
},
|
||||||
'/api/router': {
|
'/api/router': {
|
||||||
target: 'ws://localhost:4002',
|
target: 'ws://localhost:4005',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
rewriteWsOrigin: true,
|
rewriteWsOrigin: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user