Commit a3b45a58 by huangzhi

feat: 优化登陆后刷新页面

parent 000c56e8
...@@ -163,9 +163,22 @@ export default { ...@@ -163,9 +163,22 @@ export default {
} }
} }
}, },
// 初始化页面
initPage() {
// 有二维码的页面
if (this.options.scene) {
uni.showLoading({
title: '加载中',
})
this.getParamsByScene(this.options.scene)
return
}
// 非二维码的页面
this.initWeviewUrl()
},
// 登录成功后重新初始化 // 登录成功后重新初始化
handleLoginSuccess() { handleLoginSuccess() {
this.init() this.initPage()
}, },
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment