diff --git a/src/assets/icons/iconfont.css b/src/assets/icons/iconfont.css
index 95de5be..2383d4e 100644
--- a/src/assets/icons/iconfont.css
+++ b/src/assets/icons/iconfont.css
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 4414354 */
- src: url('iconfont.woff2?t=1707987260666') format('woff2'),
- url('iconfont.woff?t=1707987260666') format('woff'),
- url('iconfont.ttf?t=1707987260666') format('truetype');
+ src: url('iconfont.woff2?t=1708153151921') format('woff2'),
+ url('iconfont.woff?t=1708153151921') format('woff'),
+ url('iconfont.ttf?t=1708153151921') format('truetype');
}
.iconfont {
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
+.icon-sousuo:before {
+ content: "\e624";
+}
+
.icon-ffanhui-:before {
content: "\e6b1";
}
diff --git a/src/assets/icons/iconfont.js b/src/assets/icons/iconfont.js
index 0339478..4e9b17a 100644
--- a/src/assets/icons/iconfont.js
+++ b/src/assets/icons/iconfont.js
@@ -1 +1 @@
-window._iconfont_svg_string_4414354='',function(o){var l=(l=document.getElementsByTagName("script"))[l.length-1],c=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var a,i,h,t,s,d=function(l,c){c.parentNode.insertBefore(l,c)};if(c&&!o.__iconfont__svg__cssinject__){o.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}a=function(){var l,c=document.createElement("div");c.innerHTML=o._iconfont_svg_string_4414354,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(l=document.body).firstChild?d(c,l.firstChild):l.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),a()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(h=a,t=o.document,s=!1,m(),t.onreadystatechange=function(){"complete"==t.readyState&&(t.onreadystatechange=null,e())})}function e(){s||(s=!0,h())}function m(){try{t.documentElement.doScroll("left")}catch(l){return void setTimeout(m,50)}e()}}(window);
\ No newline at end of file
+window._iconfont_svg_string_4414354='',function(o){var l=(l=document.getElementsByTagName("script"))[l.length-1],c=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var i,a,h,t,s,d=function(l,c){c.parentNode.insertBefore(l,c)};if(c&&!o.__iconfont__svg__cssinject__){o.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}i=function(){var l,c=document.createElement("div");c.innerHTML=o._iconfont_svg_string_4414354,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(l=document.body).firstChild?d(c,l.firstChild):l.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),i()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(h=i,t=o.document,s=!1,e(),t.onreadystatechange=function(){"complete"==t.readyState&&(t.onreadystatechange=null,m())})}function m(){s||(s=!0,h())}function e(){try{t.documentElement.doScroll("left")}catch(l){return void setTimeout(e,50)}m()}}(window);
\ No newline at end of file
diff --git a/src/assets/icons/iconfont.json b/src/assets/icons/iconfont.json
index 9b6a2fc..176e6a3 100644
--- a/src/assets/icons/iconfont.json
+++ b/src/assets/icons/iconfont.json
@@ -5,6 +5,13 @@
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
+ {
+ "icon_id": "1614453",
+ "name": "搜索",
+ "font_class": "sousuo",
+ "unicode": "e624",
+ "unicode_decimal": 58916
+ },
{
"icon_id": "5365351",
"name": "返回",
diff --git a/src/assets/icons/iconfont.ttf b/src/assets/icons/iconfont.ttf
index 83b6b78..762c1b5 100644
Binary files a/src/assets/icons/iconfont.ttf and b/src/assets/icons/iconfont.ttf differ
diff --git a/src/assets/icons/iconfont.woff b/src/assets/icons/iconfont.woff
index 89759ae..841a788 100644
Binary files a/src/assets/icons/iconfont.woff and b/src/assets/icons/iconfont.woff differ
diff --git a/src/assets/icons/iconfont.woff2 b/src/assets/icons/iconfont.woff2
index 35e0bcc..02afbf9 100644
Binary files a/src/assets/icons/iconfont.woff2 and b/src/assets/icons/iconfont.woff2 differ
diff --git a/src/views/posts/utils.ts b/src/views/posts/utils.ts
index 147bfb2..6688bf7 100644
--- a/src/views/posts/utils.ts
+++ b/src/views/posts/utils.ts
@@ -36,4 +36,13 @@ export const getOtherPosts = async () => {
}
})
return postsList.value
+}
+
+export const getTagsList = async(key: string) =>{
+ const url = '/label/getLabels?key=' + key
+ const tagsList = ref([])
+ await get(url).then((res: any) => {
+ tagsList.value = res.labels.map((label: any) => label.value)
+ })
+ return tagsList.value
}
\ No newline at end of file
diff --git a/src/views/posts/write.vue b/src/views/posts/write.vue
index 4f7e6d9..0f19227 100644
--- a/src/views/posts/write.vue
+++ b/src/views/posts/write.vue
@@ -1,5 +1,5 @@
-
+
-
-
添加帖子标签
-
-
+
@@ -81,17 +114,26 @@