|
|
@ -2,7 +2,15 @@ import { setToken, setRefreshToken, removeToken, removeRefreshToken } from '@/ut |
|
|
|
import { setStore, getStore } from '@/utils/store'; |
|
|
|
import { setStore, getStore } from '@/utils/store'; |
|
|
|
import { validatenull } from '@/utils/validate'; |
|
|
|
import { validatenull } from '@/utils/validate'; |
|
|
|
import { deepClone } from '@/utils/util'; |
|
|
|
import { deepClone } from '@/utils/util'; |
|
|
|
import { loginByUsername, getUserInfo, logout, refreshToken, getButtons } from '@/api/user'; |
|
|
|
import { |
|
|
|
|
|
|
|
loginByUsername, |
|
|
|
|
|
|
|
loginBySocial, |
|
|
|
|
|
|
|
loginBySso, |
|
|
|
|
|
|
|
getUserInfo, |
|
|
|
|
|
|
|
logout, |
|
|
|
|
|
|
|
refreshToken, |
|
|
|
|
|
|
|
getButtons, |
|
|
|
|
|
|
|
} from '@/api/user'; |
|
|
|
import { getRoutes, getTopMenu } from '@/api/system/menu'; |
|
|
|
import { getRoutes, getTopMenu } from '@/api/system/menu'; |
|
|
|
import { formatPath } from '@/router/avue-router'; |
|
|
|
import { formatPath } from '@/router/avue-router'; |
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|