From 1d5484ddc7ecc4c5e171f12054d793afc026d2ee Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 21 Jun 2022 14:11:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/property/editCar/editCar.js | 6 ++++-- .../property/repairSettingManage/repairSettingManage.html | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/components/property/editCar/editCar.js b/public/components/property/editCar/editCar.js index 320be4d7b..b18a637bb 100755 --- a/public/components/property/editCar/editCar.js +++ b/public/components/property/editCar/editCar.js @@ -132,7 +132,9 @@ }, function(json, res) { //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); - if (res.status == 200) { + let _json = JSON.parse(json) + + if (_json.code != 0) { //关闭model $('#editCarModal').modal('hide'); vc.emit('listOwnerCar', 'listOwnerCarData', {}); @@ -143,7 +145,7 @@ } return; } - vc.toast(json); + vc.toast(_json.msg); }, function(errInfo, error) { console.log('请求失败处理'); diff --git a/public/pages/property/repairSettingManage/repairSettingManage.html b/public/pages/property/repairSettingManage/repairSettingManage.html index b1974c112..d4f0ebdd4 100755 --- a/public/pages/property/repairSettingManage/repairSettingManage.html +++ b/public/pages/property/repairSettingManage/repairSettingManage.html @@ -102,7 +102,7 @@