Kaynağa Gözat

修复搜索点击事件

lighter 3 ay önce
ebeveyn
işleme
80792ba387
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  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)
   }
 }