|
|
|
@ -53,7 +53,6 @@ const vueRouter = createRouter({
@@ -53,7 +53,6 @@ const vueRouter = createRouter({
|
|
|
|
|
vueRouter.beforeEach((to, from, next) => { |
|
|
|
|
// 获取当前路由的查询参数
|
|
|
|
|
const queryParams = parseUrlParams() |
|
|
|
|
console.log(queryParams) |
|
|
|
|
queryParams.token && (window.$glob.header['Authorization'] = `Bearer ${queryParams.token}`) |
|
|
|
|
next() |
|
|
|
|
}) |
|
|
|
|