mo 3 年之前
父節點
當前提交
94e38c1a1e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/hotSearch/index.tsx

+ 2 - 2
src/components/hotSearch/index.tsx

@@ -154,10 +154,10 @@ export default defineComponent({
 
     const clickHotTag = (key: string) => {
       if (props.isChiose) {
-        state.hotList.forEach(element => {
+        state.hotList.forEach((element : any)=> {
           element.isCheck = false as never
         })
-        state.hotList.forEach(element => {
+        state.hotList.forEach((element : any) => {
           if (element.key == key) {
             element.isCheck = true as never
           }