小程序适配
All checks were successful
Deploy to Server / deploy (push) Successful in 58s

This commit is contained in:
jeremygan2021
2026-02-26 15:10:52 +08:00
parent 66cfbdd75b
commit 9215ec3b42
11 changed files with 453 additions and 150 deletions

View File

@@ -63,7 +63,7 @@ export const login = async () => {
if (res.statusCode === 200 && res.data.token) {
Taro.setStorageSync('token', res.data.token)
Taro.setStorageSync('openid', res.data.openid)
// Save other info if needed
Taro.setStorageSync('userInfo', res.data)
return res.data
} else {
throw new Error(res.data.error || 'Login failed')