From d6612eb151b39c566eccb9dd9b1d1a2c9ba4fcbc Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 15 Aug 2022 09:04:06 +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/common/deleteCommunity/deleteCommunity.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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('请求失败处理');