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('请求失败处理');