diff --git a/public/components/common/deleteCommunity/deleteCommunity.js b/public/components/common/deleteCommunity/deleteCommunity.js index 0b8f2aa11..aa2f57d85 100755 --- a/public/components/common/deleteCommunity/deleteCommunity.js +++ b/public/components/common/deleteCommunity/deleteCommunity.js @@ -27,14 +27,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 $('#deleteCommunityModel').modal('hide'); vc.emit('communityManage', 'listCommunity', {}); vc.emit('auditCommunityManage', 'listCommunity', {}); return; } - vc.toast(json); + vc.toast(_json.msg); }, function(errInfo, error) { console.log('请求失败处理');