| | |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | | import PageLayoutWithBg from '@/components/Layout/PageLayoutWithBg.vue'; |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useUserStoreWithOut } from '@/stores/modules/user'; |
| | | import { Message } from '@/utils'; |
| | | import { useLifeRechargeContext } from '@life-payment/core-vue'; |
| | | |
| | | const { userDetail, virtualPhoneNumber } = useUser(); |
| | | const isLogin = useIsLogin(); |
| | | const systemStore = useSystemStore(); |
| | | const userStore = useUserStore(); |
| | | const { blLifeRecharge } = useLifeRechargeContext(); |
| | | |
| | | const { goLoginFn } = useGoLogin(); |
| | | const bgHeight = computed(() => 133 + systemStore.navHeight); |
| | |
| | | |
| | | const goOrderManage = useAccessLogin(() => goPage(RouterPath.order)); |
| | | |
| | | function goLogout() { |
| | | userStore.logout(); |
| | | useUserStoreWithOut().logout(); |
| | | async function goLogout() { |
| | | try { |
| | | await Message.confirm({ |
| | | message: '确定要退出登录吗?', |
| | | }); |
| | | userStore.logout(); |
| | | blLifeRecharge.loginout(); |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |