数据持久化和添加文档

This commit is contained in:
not-like-juvenile
2026-02-03 21:03:45 +08:00
parent 768140fda3
commit 3a0936c12e
5 changed files with 89 additions and 3 deletions

View File

@@ -280,6 +280,7 @@ const handleLogin = async () => {
class_id: ''
} as UserProfile
setUserProfile(adminProfile)
uni.setStorageSync('user_id', 'admin')
uni.showToast({ title: '管理员登录成功', icon: 'success' })
setTimeout(() => {