问题描述
使用内嵌模式获取登录状态一致返回underfined,无法从外部获取登录状态可能导致整体修改,希望寻求一些帮助
导致页面一直向登录界面跳转
const loginStatus = await this.$guard.checkLoginStatus()
console.log("check login in nav bar: " + loginStatus)
if (!loginStatus) {
console.error('Guard is not get login status')
this.signedIn = false;
this.$router.push({ name: "login" });
}
重现步骤
附加信息
- Version:
“@authing/guard-vue2”: “^5.1.9”,
“@authing/vue-ui-components”: “^4.3.10”,
- Platform:
vue2