From cd6cd775e73862460be7f2499703493a3714f30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Fri, 28 Apr 2023 17:48:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=F0=9F=90=9B=20=E6=80=A7=E5=88=AB=E9=80=89=E9=A1=B9=E5=92=8C?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E5=AF=B9=E5=BA=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/personal/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/src/views/system/personal/index.vue b/web/src/views/system/personal/index.vue index a84fddf..b87fbcb 100644 --- a/web/src/views/system/personal/index.vue +++ b/web/src/views/system/personal/index.vue @@ -84,9 +84,10 @@ - - - + + + + @@ -180,6 +181,7 @@ import { Session } from '/@/utils/storage'; import { useRouter } from 'vue-router'; import { useUserInfo } from '/@/stores/userInfo'; import { successMessage } from '/@/utils/message'; +import {dictionary} from "/@/utils/dictionary"; // 头像裁剪组件 const avatarSelector = defineAsyncComponent(() => import('/@/components/avatarSelector/index.vue')); @@ -226,12 +228,14 @@ const msgMore = () => { route.push({ path: '/messageCenter' }); }; +const genderList = ref(); /** * 获取用户个人信息 */ const getUserInfo = function () { api.GetUserInfo({}).then((res: any) => { const { data } = res; + genderList.value = dictionary('gender') state.personalForm.avatar = data.avatar || ''; state.personalForm.username = data.username || ''; state.personalForm.name = data.name || '';