Commit 100f8e7a authored by “yiyousong”'s avatar “yiyousong”

fix:修改基础设置热搜词汇

parent a0531a61
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
effect="dark" effect="dark"
:key="item.id" :key="item.id"
:content="item.hotwords" :content="item.hotwords"
v-if="item.hotwords.length > 6" v-if="item.hotwords?.length > 6"
placement="top-start" placement="top-start"
> >
<el-tag <el-tag
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
:disable-transitions="false" :disable-transitions="false"
@close="handleClose(item.hotwords)" @close="handleClose(item.hotwords)"
> >
{{ `${item.hotwords.slice(0, 6)}...` }} {{ `${item.hotwords?.slice(0, 6)}...` }}
</el-tag> </el-tag>
</el-tooltip> </el-tooltip>
<el-tag <el-tag
...@@ -106,7 +106,6 @@ export default { ...@@ -106,7 +106,6 @@ export default {
}, },
handleClose(tag) { handleClose(tag) {
//删除当前词汇 //删除当前词汇
this.baseSetInfo.hotwords = this.baseSetInfo.hotwords.filter( this.baseSetInfo.hotwords = this.baseSetInfo.hotwords.filter(
(i) => i.hotwords != tag (i) => i.hotwords != tag
); );
...@@ -123,7 +122,7 @@ export default { ...@@ -123,7 +122,7 @@ export default {
}, },
handleInputConfirm() { handleInputConfirm() {
let inputValue = this.inputValue; let inputValue = this.inputValue.replaceAll(" ", "");
if (inputValue) { if (inputValue) {
let list = this.baseSetInfo.hotwords.filter( let list = this.baseSetInfo.hotwords.filter(
(i) => i.hotwords === inputValue (i) => i.hotwords === inputValue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment