|
@@ -12,8 +12,8 @@ router.beforeEach(async (to, from, next) => {
|
|
|
NProgress.start()
|
|
|
|
|
|
const hasToken = store.getters.token
|
|
|
- let loginType = window.topU ? window.topU.U.UF.Cookie.get("cocoroboLoginType") : window.top.U.UF.Cookie.get("cocoroboLoginType");
|
|
|
- let cocorobo = window.topU ? window.topU.U.UF.Cookie.get("cocorobo") : window.top.U.UF.Cookie.get("cocorobo");
|
|
|
+ let loginType = window.topU ? window.topU.U.UF.Cookie.get("cocoroboLoginType") : window.parent.U.UF.Cookie.get("cocoroboLoginType");
|
|
|
+ let cocorobo = window.topU ? window.topU.U.UF.Cookie.get("cocorobo") : window.parent.U.UF.Cookie.get("cocorobo");
|
|
|
if (hasToken && cocorobo && loginType != 1) {
|
|
|
if (to.path === '/login') {
|
|
|
console.log('111111111111');
|