|
|
@@ -4,12 +4,12 @@ import { getToken, setToken } from '@/utils/auth' // getToken from cookie
|
|
|
import { lockStatus,unlock } from "@/api/allApi";
|
|
|
//路由跳转之前
|
|
|
router.beforeEach((to, _from, next) => {
|
|
|
- // setToken('3ea044ab331806ba7b38202175e1cf31');
|
|
|
+ setToken('bdda903172a8cc79ae3ee559458bfa5b');
|
|
|
const path = to.path;
|
|
|
const Authorization = to.query.Authorization
|
|
|
if (path.indexOf('auth') != -1 && Authorization) {
|
|
|
setToken(Authorization);
|
|
|
- // console.log(Authorization);
|
|
|
+ console.log(Authorization);
|
|
|
next({ path: '/' });
|
|
|
}else{
|
|
|
const token = getToken();
|