zhengyiming
2025-02-24 4cb3259a2dc953678d6d7b3961728b0e47f32fc4
apps/taro/src/pages/mine/index.vue
@@ -35,12 +35,14 @@
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);
@@ -71,9 +73,14 @@
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>