添加onPageLoadInitAuth函数判断登录

This commit is contained in:
zhengw
2026-03-10 11:33:42 +08:00
parent 511d29281e
commit 76c28f8d78
40 changed files with 816 additions and 526 deletions

View File

@@ -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(() => {})