|
|
@@ -800,23 +800,23 @@ this.$forceUpdate();
|
|
|
//放入session
|
|
|
const result = res.data.result
|
|
|
const userInfo = result.userInfo
|
|
|
- uni.showToast({
|
|
|
- title: '111111!',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '111111!',
|
|
|
+ // icon: 'none'
|
|
|
+ // })
|
|
|
uni.setStorageSync(ACCESS_TOKEN,result.token);
|
|
|
uni.setStorageSync(USER_INFO,userInfo);
|
|
|
- uni.showToast({
|
|
|
- title: '222222222!',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '222222222!',
|
|
|
+ // icon: 'none'
|
|
|
+ // })
|
|
|
this.$store.commit('SET_TOKEN', result.token)
|
|
|
this.$store.commit('SET_NAME', { username: userInfo.username,realname: userInfo.realname})
|
|
|
this.$store.commit('SET_AVATAR', userInfo.avatar)
|
|
|
- uni.showToast({
|
|
|
- title: '44444444444444!',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '44444444444444!',
|
|
|
+ // icon: 'none'
|
|
|
+ // })
|
|
|
// #ifdef APP-PLUS
|
|
|
uni.switchTab({
|
|
|
url: '/pages/index/index'
|
|
|
@@ -828,10 +828,10 @@ this.$forceUpdate();
|
|
|
name: 'index'
|
|
|
})
|
|
|
// #endif
|
|
|
- uni.showToast({
|
|
|
- title: '888888888888888888!',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '888888888888888888!',
|
|
|
+ // icon: 'none'
|
|
|
+ // })
|
|
|
} else {
|
|
|
this.$tip.error(res.data.message);
|
|
|
}
|