diff --git a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue index 1f5a565b..6c0b5f17 100644 --- a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue +++ b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue @@ -11,11 +11,11 @@
{{ userInfo.nick }}
- {{ + {{ userInfo.level }}
-
+
{{ userInfo.userLimit.label }} @@ -58,8 +58,8 @@ const userInfo = reactive({ nick: "", role: [], id: "", - level: 1, - userLimit: 0, + level: "", + userLimit: "", }); const iconUrl = ref("/favicon.ico"); const iconUrlHandler = () => { @@ -99,7 +99,7 @@ const Init = () => { userInfo.role = props.userInfo.role; userInfo.id = props.userInfo.id; userInfo.level = "等级" + props.userInfo.level; - userInfo.userLimit = getStatusInfo(1); + userInfo.userLimit = getStatusInfo(props.userInfo.userLimit); iconUrl.value = iconUrlHandler(userInfo.icon); }