first commit

This commit is contained in:
2026-09-11 01:45:04 +08:00
commit 0a8d60d87f
145 changed files with 40978 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// app.ts
import * as auth from './utils/auth'
import { setAuthExpiredHandler } from './utils/request'
App<IAppOption>({
globalData: {
userInfo: undefined,
},
onLaunch() {
// 登录失效 / 账号禁用时统一清登录态并跳转登录页
setAuthExpiredHandler(() => {
auth.clearTokens()
auth.clearUserInfo()
wx.reLaunch({ url: '/pages/login/login' })
})
},
})