diff --git a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue
index 9984731f..b969f3ec 100644
--- a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue
+++ b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue
@@ -17,8 +17,12 @@
>
-
- {{ userInfo.userLimit.label }}
+
+ {{ getStatusInfo(userInfo.userLimit)?.label }}
@@ -107,7 +111,7 @@ const Init = () => {
userInfo.role = props.userInfo.role;
userInfo.id = props.userInfo.id;
userInfo.level = props.userInfo.level;
- userInfo.userLimit = getStatusInfo(props.userInfo.userLimit);
+ userInfo.userLimit = props.userInfo.userLimit;
iconUrl.value = iconUrlHandler(userInfo.icon);
}
diff --git a/Yi.Bbs.Vue3/src/components/UserInfoCard/index.vue b/Yi.Bbs.Vue3/src/components/UserInfoCard/index.vue
index 884a837a..0c6c9598 100644
--- a/Yi.Bbs.Vue3/src/components/UserInfoCard/index.vue
+++ b/Yi.Bbs.Vue3/src/components/UserInfoCard/index.vue
@@ -48,7 +48,7 @@
积分:3005
状态:
- {{ getStatusInfo(userInfo.userLimit.label) }}
+ {{ getStatusInfo(userInfo.userLimit) }}
@@ -98,7 +98,7 @@ const statusTypeList = [
},
];
const getStatusInfo = (type) => {
- return statusTypeList.filter((item) => item.value === type)[0];
+ return statusTypeList.filter((item) => item.value === type)[0]?.label;
};