diff --git a/component/item-forum/item-forum.js b/component/item-forum/item-forum.js
index d1a9be1..097f5ae 100644
--- a/component/item-forum/item-forum.js
+++ b/component/item-forum/item-forum.js
@@ -25,6 +25,9 @@ export const itemForum = defineComponent({
res.content = res?.content?.replace(/\[.*?\../g, "");
let item = ref({ ...res });
+
+ item.value['url'] = '/details/' + item.value.uniqid;
+
return { item };
},
@@ -33,5 +36,5 @@ export const itemForum = defineComponent({
itemHead,
},
- template: `
`,
+ template: `
`,
});
diff --git a/component/item-forum/item-forum.txt b/component/item-forum/item-forum.txt
index 194f85c..603461f 100644
--- a/component/item-forum/item-forum.txt
+++ b/component/item-forum/item-forum.txt
@@ -1,8 +1,8 @@
\ No newline at end of file
diff --git a/component/item-head/item-head.js b/component/item-head/item-head.js
index 45836bc..7f56106 100644
--- a/component/item-head/item-head.js
+++ b/component/item-head/item-head.js
@@ -33,7 +33,9 @@ export const itemHead = defineComponent({
sectionn.value = item.value.sectionn || [];
const sectionNameSet = new Set(sectionn.value.map((item) => item.name));
- tags.value = item.value?.tags?.filter((tagName) => !sectionNameSet.has(tagName)) || [];
+ console.log(item.value.tags, "tags");
+ tags.value = item.value?.tags || [];
+ tags.value = tags.value?.filter((tagName) => !sectionNameSet.has(tagName)) || [];
// const sectionSet = new Set(sectionn.value);
// tags.value = item.value.tags?.filter((tag) => !sectionSet.has(tag));
@@ -107,7 +109,6 @@ export const itemHead = defineComponent({
const parentItemBox = targetNode.parentElement;
if (parentItemBox?.classList.contains("item-box")) parentItemBox.style.display = "none";
-
})
.finally(() => {
cutShow();
diff --git a/css/index.css b/css/index.css
index 5bc17de..346fcfd 100644
--- a/css/index.css
+++ b/css/index.css
@@ -281,10 +281,17 @@
#appIndex .header-content-box .header-content-right .post-entrance .entrance-bottom .item:hover {
background-color: #e7e7e7;
}
-#appIndex .header-content-box .header-content-right .post-entrance .entrance-bottom .item .icon {
+#appIndex .header-content-box .header-content-right .post-entrance .entrance-bottom .item .icon-box {
+ position: relative;
width: 16px;
height: 16px;
- margin-right: 6px;
+ margin-right: 8px;
+}
+#appIndex .header-content-box .header-content-right .post-entrance .entrance-bottom .item .icon-box .icon {
+ position: absolute;
+ width: 38px;
+ top: -8px;
+ left: -6px;
}
#appIndex .header-content-box .header-content-right .adv {
width: 240px;
diff --git a/css/index.less b/css/index.less
index 258954c..92def3a 100644
--- a/css/index.less
+++ b/css/index.less
@@ -334,10 +334,18 @@
background-color: #e7e7e7;
}
- .icon {
+ .icon-box {
+ position: relative;
width: 16px;
height: 16px;
- margin-right: 6px;
+ margin-right: 8px;
+
+ .icon {
+ position: absolute;
+ width: 38px;
+ top: -8px;
+ left: -6px;
+ }
}
}
}