@@ -76,9 +76,6 @@ export const getUrlParams = (key: any = 'accessToken') => {
}
let token: string = theRequest[key] || ''
- if (token == 'null') {
- token = ''
- }
return token
@@ -420,7 +420,7 @@ export default defineComponent({
},
beforeRouteEnter(to, from, next) {
let mac: any = getCookieMac();
- if (mac && mac !== "null") {
+ if (mac && mac != "null") {
next();
} else {
next("/error");
@@ -107,7 +107,7 @@ export default defineComponent({
console.log(to);
console.log(from);
if (to.query.type !== "logoOut") {
next((e: any) => {
console.log(e);