优化代码

This commit is contained in:
java110 2020-10-27 16:21:44 +08:00
parent 1b20651bd2
commit 92427db8c7

View File

@ -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) {