feat: 重新登录逻辑更改

This commit is contained in:
Gsh
2025-08-30 23:58:57 +08:00
parent 08084aa0bc
commit 8abd122773
4 changed files with 40 additions and 11 deletions

View File

@@ -1,12 +1,19 @@
<script lang="ts" setup>
import { Camera, Edit, SuccessFilled } from '@element-plus/icons-vue';
import { format } from 'date-fns';
import { computed, ref } from 'vue';
import { computed, onMounted, ref } from 'vue';
import { getUserInfo } from '@/api';
import QrCodeLogin from '@/components/LoginDialog/components/QrCodeLogin/index.vue';
import { useUserStore } from '@/stores';
import { getUserProfilePicture, WECHAT_QRCODE_TYPE } from '@/utils/user.ts';
const userStore = useUserStore();
onMounted(async () => {
const resUserInfo = await getUserInfo();
userStore.setUserInfo(resUserInfo.data);
});
const user = computed(() => userStore.userInfo.user || {});
const wechatDialogVisible = ref(false);