From 282ae8b61eed9a9eb81ac85a9c7f6899eb3652fd Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 29 七月 2024 19:26:14 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_staff/components/disCase/index.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/components/disCase/index.js b/wechat_staff/components/disCase/index.js
index 5c4fd11..04a3324 100644
--- a/wechat_staff/components/disCase/index.js
+++ b/wechat_staff/components/disCase/index.js
@@ -101,11 +101,10 @@
         return
       } 
       const code = e.currentTarget.dataset.code
-      const paramIndex = e.currentTarget.dataset.index
+      const paramIndex = e.currentTarget.dataset.index 
       const { cateList, tagCodes, activeParam, activeIndex } = this.data
-      const index = tagCodes.indexOf(code)
-      
-      if(index === -1){  
+      const index = tagCodes.indexOf(code) 
+      if( cateList[activeIndex].tempParamIndex==null ||     cateList[activeIndex].tempParamIndex != paramIndex){  
         cateList[activeIndex].tempParamIndex = paramIndex
         cateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName
         cateList[activeIndex].tempParamCode = code

--
Gitblit v1.9.3