Selaa lähdekoodia

设备管理 mixin

wuhao 3 vuotta sitten
vanhempi
commit
63e6ab8c0d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/views/device/mixin/index.js

+ 2 - 2
src/views/device/mixin/index.js

@@ -39,8 +39,8 @@ const category = {
     categoryList({
       status: 1,
     }).then((res) => {
-      if (res.data.code === 0) {
-        this.categoryOptions = res.data.data;
+      if (res.code === 0) {
+        this.categoryOptions = res.data;
       }
     });
   }