|
@@ -49,6 +49,11 @@ router.beforeEach((to, from , next) => {
|
|
|
let userInfo = null
|
|
|
let themeConfig = null
|
|
|
export const initMainRouter = async () => {
|
|
|
+ const url = new URL(location.href)
|
|
|
+ const token = url.searchParams.get('sessionToken')
|
|
|
+ if (token) {
|
|
|
+ localStorage.setItem('ss_token', token)
|
|
|
+ }
|
|
|
if (localStorage.getItem('ss_token')) {
|
|
|
const loading = ElLoading.service({
|
|
|
lock: true,
|