登录对接
This commit is contained in:
@@ -197,6 +197,14 @@ const prePage = () => {
|
||||
return prePage
|
||||
}
|
||||
|
||||
const loginSuccess = (data) => {
|
||||
uni.setStorageSync('userInfo', data)
|
||||
uni.setStorageSync('token', data.token_type + ' ' + data.access_token)
|
||||
uni.reLaunch({
|
||||
url: '/pages/user/login',
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
validatePhoneNumber,
|
||||
toast,
|
||||
@@ -206,4 +214,5 @@ export default {
|
||||
getUserLocation,
|
||||
loadConfig,
|
||||
prePage,
|
||||
loginSuccess,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user