Преглед на файлове

fix:商城添加套餐分类展示

ct преди 3 дни
родител
ревизия
9eb5219dc7
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      src/views/his/company/index.vue

+ 6 - 1
src/views/his/company/index.vue

@@ -958,7 +958,12 @@ export default {
       this.followDoctorList = response.rows
     })
     cateList().then((response) => {
-      this.cateList = response.rows
+      console.log(response.rows)
+      if ( response.rows.length == 0) {
+        this.getDicts('store_product_package_cate').then(response => {
+          this.cateList = response.data
+        })
+      }
     })
     listDept().then(response => {
       this.deptOptions = response.data