添加onPageLoadInitAuth函数判断登录
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { base } from '@/utils/config';
|
||||
import { checkSesskey, loginStatusPage, post } from '@/utils/https';
|
||||
import { Subscribe } from '@/utils/subscribe';
|
||||
import { getStorage, toObject } from '@/utils/util';
|
||||
|
||||
Page({
|
||||
@@ -59,6 +60,7 @@ Page({
|
||||
complete: (res: any) => {
|
||||
if (res.confirm) {
|
||||
post('Applet/loginOut').then(() => {
|
||||
Subscribe.set('isLogin', false);
|
||||
this.setData({ isLogin: false });
|
||||
checkSesskey({ showLoading: false, showError: false })
|
||||
.then(() => {})
|
||||
|
||||
Reference in New Issue
Block a user