diff --git a/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue b/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue index f9342a0b..2dd7ab06 100644 --- a/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue +++ b/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue @@ -37,7 +37,7 @@ watch(props,(n,o)=>{ ); //需要注意代码块样式 outputHtml.value = marked(n.code).replace(/
/g, "")
-})
+},{immediate:true,deep:true})
diff --git a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue
index 2eeeb495..de44fa09 100644
--- a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue
+++ b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue
@@ -17,13 +17,9 @@
>
-
- {{ getStatusInfo(userInfo.userLimit)?.label }}
-
+
+
+
{{ props.time }}
@@ -52,6 +48,8 @@ import { reactive, watch, onMounted, computed, ref } from "vue";
import { upload } from "@/apis/fileApi";
import useAuths from "@/hooks/useAuths";
import UserInfoCard from "./UserInfoCard/index.vue";
+import UserLimitTag from "./UserLimitTag.vue";
+
const { getToken } = useAuths();
const isHasToken = getToken();
@@ -128,27 +126,8 @@ const Init = () => {
}
};
-const statusTypeList = [
- {
- label: "正常",
- value: "Normal",
- type: "success",
- },
- {
- label: "危险",
- value: "Dangerous",
- type: "warning",
- },
- {
- label: "已禁止",
- value: "Ban",
- type: "danger",
- },
-];
-const getStatusInfo = (type) => {
- return statusTypeList.filter((item) => item.value === type)[0];
-};
+