فهرست منبع

设备管理 分类管理

wuhao 3 سال پیش
والد
کامیت
bf8184fd0a
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/device/category/index.vue

+ 3 - 3
src/views/device/category/index.vue

@@ -101,8 +101,8 @@ export default {
     getList() {
       this.loading = true;
       categoryList().then((res) => {
-        if (res.data.code === 0) {
-          this.tableData = res.data.data;
+        if (res.code === 0) {
+          this.tableData = res.data;
           this.loading = false;
         }
       });
@@ -160,7 +160,7 @@ export default {
       })
         .then(() => {
           categoryDelete(id).then((res) => {
-            if (res.data.code === 0) {
+            if (res.code === 0) {
               this.getList();
               this.$message.success("删除成功!");
             }