|
|
@@ -42,6 +42,12 @@ Vue.mixin({
|
|
|
this.goLogin();
|
|
|
}
|
|
|
},
|
|
|
+ async needLoginQrcode() {
|
|
|
+ const userInfo = await this.getUserInfo();
|
|
|
+ if (!userInfo || !userInfo.nickname) {
|
|
|
+ location.href = this.$store.state.domainConfig.siteUrl + '/?loginbox=show&scan=1&next=' + encodeURIComponent(location.href)
|
|
|
+ }
|
|
|
+ },
|
|
|
async checkLogin(goLogin = false) {
|
|
|
const userInfo = await this.getUserInfo();
|
|
|
if (!userInfo || !userInfo.nickname) {
|