提交 af6c10f5 编写于 作者: VK1688's avatar VK1688

【优化】`App.vue` 内的 `init` 逻辑(可以有效解决首次进入首页再返回登录页面的显示问题)

上级 bff9287e
......@@ -8,6 +8,11 @@ export default {
init() {
let that = this;
let { vk } = that;
// 如果token失效,直接跳登录页面
if (!vk.callFunctionUtil.checkToken()) {
vk.reLaunch(config.login.url);
return false;
}
if (!that.isAllowLoginBackground()) {
vk.alert("您的账户无登陆权限", function() {
vk.reLaunch(config.login.url);
......
......@@ -22,7 +22,7 @@
"dependencies": {
"element-ui": "^2.15.6",
"umy-ui": "^1.1.6",
"vk-unicloud-admin-ui": "^1.6.31"
"vk-unicloud-admin-ui": "^1.6.32"
},
"engines": {
"HBuilderX": "^3.1.10"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册