diff --git a/public/components/common/addCommunity/addCommunity.js b/public/components/common/addCommunity/addCommunity.js index 487b5d9d6..0ee7a2864 100644 --- a/public/components/common/addCommunity/addCommunity.js +++ b/public/components/common/addCommunity/addCommunity.js @@ -118,7 +118,8 @@ }, 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 $('#addCommunityModel').modal('hide'); vc.component.clearAddCommunityInfo(); @@ -126,7 +127,8 @@ return; } - vc.toast(json); + + vc.toast(json.msg); }, function (errInfo, error) {