| | |
| | | import { useUserStore } from '@/store/user'; |
| | | import { useI18n } from "vue-i18n"; |
| | | import useClipboard from "vue-clipboard3"; |
| | | import { showToast } from "vant"; |
| | | import { showConfirmDialog } from 'vant'; |
| | | import addBankIcon from '@/assets/image/userCenter/addBank.png' |
| | | import kycHighStatusIcon from '@/assets/image/userCenter/kycHighStatus.png' |
| | | import store from '@/store/store' |
| | |
| | | |
| | | }) |
| | | const loginOut = () => { |
| | | _logOut({ |
| | | token: userStore.userInfo.token |
| | | }).then(res => { |
| | | userStore.userInfo = {} |
| | | store.state.user.userInfo = {} |
| | | router.push('/login') |
| | | showConfirmDialog({ |
| | | title: `${t('确认退出')}`, |
| | | message: `${t('确定要退出登录吗?')}` |
| | | }).then(() => { |
| | | _logOut({ |
| | | token: userStore.userInfo.token |
| | | }).then(res => { |
| | | userStore.userInfo = {} |
| | | store.state.user.userInfo = {} |
| | | router.push('/login') |
| | | }) |
| | | .catch(err => { |
| | | // showFailToast(`${t('退出失败,请重试')}`) |
| | | }) |
| | | }).catch(() => { |
| | | // 用户取消操作 |
| | | }) |
| | | } |
| | | const getIdentify = () => { |