ZaiZai пре 11 месеци
родитељ
комит
26447d780f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/store/modules/app.js

+ 2 - 2
src/store/modules/app.js

@@ -44,9 +44,9 @@ const getStoreProjecInfo = async (arr) => {
     const projectId = store.projectId //项目ID
     const contractId = store.contractId //合同段ID
     //查询缓存的选中ID是否存在
-    const pid = arr.findIndex(item => Number(item.id) === Number(projectId))
+    const pid = arr.findIndex(item => String(item.id) === String(projectId))
     const contractList = getArrValue(arr[pid]?.contractInfoList)
-    const cid = contractList.findIndex(item => Number(item.id) === Number(contractId))
+    const cid = contractList.findIndex(item => String(item.id) === String(contractId))
     //如果缓存的选中ID不存在
     if (cid === -1) {
         return false