Browse Source

没有配驾意险的时候默认显示空,删除重新请求驾意险列表的接口

祁鹏飞 4 days ago
parent
commit
a6bdc0f2d2
1 changed files with 12 additions and 13 deletions
  1. 12 13
      src/layouts/components/DrivingType/index.vue

+ 12 - 13
src/layouts/components/DrivingType/index.vue

@@ -128,20 +128,19 @@ const initEditData = (data, index, id, arr = []) => {
   }
   if (arr.length) {
     setList(arr)
-    return
   }
-  api.projectApi.jyxList({
-    company: id
-  }).then(res => {
-    if (res.code == 200) {
-      setList(res.data)
-    } else {
-      ElMessage({
-        message: res.msg,
-        type: 'warning'
-      })
-    }
-  })
+  // api.projectApi.jyxList({
+  //   company: id
+  // }).then(res => {
+  //   if (res.code == 200) {
+  //     setList(res.data)
+  //   } else {
+  //     ElMessage({
+  //       message: res.msg,
+  //       type: 'warning'
+  //     })
+  //   }
+  // })
 }
 
 // 取消