This commit is contained in:
曹辉 2023-05-10 10:21:19 +08:00
parent 34bbe788b4
commit bfd0ec4f94

View File

@ -146,6 +146,9 @@
import {
existPatientInfo
} from '@/api/startup/index.js'
import {
createMobileToken
} from '@/api/login/index.js'
import baseurl from '@/api/baseurl.js'
export default {
data() {
@ -186,11 +189,15 @@
uni.removeStorageSync('patientId');
uni.removeStorageSync('openid');
uni.removeStorageSync('phone');
uni.removeStorageSync('token');
that.$refs.uToast.show({
title: '退出账号成功',
type: 'success',
duration: '1000'
})
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
})
if (that.timer) {
clearTimeout(that.timer)
}