feat: change to center and clean code
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { query } from '@/modules';
|
||||
import { message } from 'antd';
|
||||
import { create } from 'zustand';
|
||||
import { history } from '@/utils/history';
|
||||
// 如果自己是在iframe中登录,需要调用这个方法
|
||||
export const postLoginInIframe = (token: string) => {
|
||||
console.log('window.parent !== window', window.parent !== window);
|
||||
@@ -85,7 +84,6 @@ export const useLoginStore = create<LoginStore>((set, get) => {
|
||||
if (res.code === 200) {
|
||||
message.success('Success');
|
||||
// 跳到某一个页面
|
||||
// history.push('/map', {}, true);
|
||||
} else {
|
||||
message.error(res.message || 'Request failed');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user