From 0d23ba078b7ad1954799b4e3194804f7ba2ba0e2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 20 May 2023 13:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=A6=BB=E6=95=A3?= =?UTF-8?q?=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deletePropertyCommunity/deletePropertyCommunity.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/components/common/deletePropertyCommunity/deletePropertyCommunity.js b/public/components/common/deletePropertyCommunity/deletePropertyCommunity.js index 4ad8530df..bc6b4caac 100644 --- a/public/components/common/deletePropertyCommunity/deletePropertyCommunity.js +++ b/public/components/common/deletePropertyCommunity/deletePropertyCommunity.js @@ -25,14 +25,15 @@ }, 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 $('#deletePropertyCommunityModel').modal('hide'); vc.emit('communityManage', 'listPropertyCommunity', {}); vc.emit('propertyCommunity', 'listCommunity', {}); return; } - vc.toast(json); + vc.toast(_json.msg); }, function(errInfo, error) { console.log('请求失败处理');