Compare commits
2 Commits
46768fe668
...
ddae05ffde
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddae05ffde | ||
|
|
cb4a3f1a2e |
@@ -451,41 +451,8 @@
|
|||||||
this.accountName = items.otherSiteName
|
this.accountName = items.otherSiteName
|
||||||
this.checkList = ''
|
this.checkList = ''
|
||||||
this.checkFirst = false
|
this.checkFirst = false
|
||||||
uni.setStorageSync('checkFirst',false);
|
uni.setStorageSync('checkFirst',false)
|
||||||
console.log(uni.getStorageSync('Authorization'),'更新前Authorization')
|
|
||||||
uni.setStorageSync('Authorization',res.data.authTokenDTO.accessToken)
|
uni.setStorageSync('Authorization',res.data.authTokenDTO.accessToken)
|
||||||
console.log(uni.getStorageSync('Authorization'),'更新后Authorization')
|
|
||||||
// uni.setStorage({
|
|
||||||
// key:'Authorization',
|
|
||||||
// data:res.data.authTokenDTO.accessToken,
|
|
||||||
// success: function () {
|
|
||||||
// console.log('accessToken更新成功');
|
|
||||||
// },
|
|
||||||
// fail(){
|
|
||||||
// console.log('accessToken更新失败')
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// uni.setStorage({
|
|
||||||
// key: 'Authorization',
|
|
||||||
// data: res.data.authTokenDTO.accessToken,
|
|
||||||
// success: () => {
|
|
||||||
// console.log('Authorization成功', res.data.authTokenDTO.accessToken)
|
|
||||||
// },
|
|
||||||
// fail(e){
|
|
||||||
// console.log(e,'Authorization失败')
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// uni.setStorageSync({
|
|
||||||
// key: 'Authorization',
|
|
||||||
// data: res.data.authTokenDTO.accessToken,
|
|
||||||
// success: () => {
|
|
||||||
// console.log('Authorization成功', res.data.authTokenDTO.accessToken)
|
|
||||||
// },
|
|
||||||
// fail(e){
|
|
||||||
// console.log(e,'11111111111111')
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
|
|
||||||
this.checkForE =false
|
this.checkForE =false
|
||||||
uni.setStorageSync('userMenu', res.data.authTokenDTO.loginUser.roleMenus)
|
uni.setStorageSync('userMenu', res.data.authTokenDTO.loginUser.roleMenus)
|
||||||
uni.setStorageSync('loginUser', {
|
uni.setStorageSync('loginUser', {
|
||||||
|
|||||||
Reference in New Issue
Block a user