Selaa lähdekoodia

修复搜索点击事件

lighter 3 kuukautta sitten
vanhempi
commit
80792ba387
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      src/components/search/Index.vue

+ 4 - 2
src/components/search/Index.vue

@@ -193,8 +193,10 @@ const clickItem = (item) => {
     diagItem.icdText = item.name
     diagItem.diagType = '1'
     showDiagType.value = true
-  } else if (props.showMallType) {
-    item.type = params.target
+  } else {
+    if (props.showMallType) {
+      item.type = params.target
+    }
     emits('clickItem', item)
   }
 }