测试bug修改

This commit is contained in:
仲么了
2023-08-17 09:24:59 +08:00
parent 792e1ce7d7
commit 6bc28e4f44
33 changed files with 1066 additions and 826 deletions

View File

@@ -93,7 +93,7 @@
</template>
<script>
import { roleUpdate } from '@/common/api/user'
import { roleUpdate, autoLogin } from '@/common/api/user'
import { transferDevice } from '@/common/api/device'
export default {
@@ -137,14 +137,16 @@ export default {
referralCode: code,
userId: this.userInfo.userIndex,
}).then((res) => {
uni.removeStorage('engineering')
uni.showToast({
title: '升级成功',
icon: 'none',
})
// 重新登录
uni.reLaunch({
url: '/pages/user/login',
uni.removeStorageSync('access_token')
// 直接登录
autoLogin(this.userInfo.user_name).then((res) => {
this.$util.loginSuccess(res.data).then((userInfo) => {
this.userInfo = userInfo
})
})
})
},