lilei 1 år sedan
förälder
incheckning
2a6f3a7acf
2 ändrade filer med 8 tillägg och 14 borttagningar
  1. 1 1
      public/version.json
  2. 7 13
      src/views/common/custType.js

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1709780666136
+  "version": 1709790398707
 }

+ 7 - 13
src/views/common/custType.js

@@ -54,19 +54,13 @@ const custType = {
       this.$emit('input', value);
     },
     getList () {
-      const data = this.$store.state.app.custTypeAll
-      if(data&&data.length){
-        this.list = data
-      }else{
-        custTypeFindAllList().then(res => {
-          if (res.status == 200) {
-            this.list = res.data
-            this.$store.state.app.custTypeAll = res.data
-          } else {
-            this.list = []
-          }
-        })
-      }
+      custTypeFindAllList().then(res => {
+        if (res.status == 200) {
+          this.list = res.data
+        } else {
+          this.list = []
+        }
+      })
     },
   },
 };