fix: login success return '/' error
This commit is contained in:
parent
0dce78e12f
commit
06279b1be1
@ -1,4 +1,5 @@
|
||||
import { query } from '@/modules';
|
||||
import { basename } from '@/modules/basename';
|
||||
import { message } from 'antd';
|
||||
import { create } from 'zustand';
|
||||
// 如果自己是在iframe中登录,需要调用这个方法
|
||||
@ -70,7 +71,7 @@ export const useLoginStore = create<LoginStore>((set, get) => {
|
||||
if (redirect) {
|
||||
window.location.href = redirect;
|
||||
} else {
|
||||
window.location.href = '/';
|
||||
window.location.href = basename;
|
||||
}
|
||||
} else {
|
||||
message.error(res.message || 'Request failed');
|
||||
|
Loading…
x
Reference in New Issue
Block a user