This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user