Hwt 2 年 前
コミット
7ae2516cf9
1 ファイル変更2 行追加2 行削除
  1. 2 2
      operationSupport/src/views/buildingManagement/index.vue

+ 2 - 2
operationSupport/src/views/buildingManagement/index.vue

@@ -249,7 +249,7 @@ export default {
     deleteOne (ids) {
       this.$msgBox(`刪除`, '删除后将无法恢复,请问是否继续?')
         .then(() => {
-          this.$http.get('/czc-community/assets/building/delete', { id: ids }).then(({ status }) => {
+          this.$http.get('/czc-community/assets/building/delete', { id: ids }).then(({ status, data, msg }) => {
             if (0 === status) {
               this.$message({
                 type: 'success',
@@ -257,7 +257,7 @@ export default {
               });
               this.mixins_search();
             } else {
-              this.$message.error('删除失败!');
+              this.$message.error(msg);
             }
           });
         })