mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
优化代码
This commit is contained in:
parent
011bd28be7
commit
d6612eb151
@ -27,14 +27,15 @@
|
|||||||
},
|
},
|
||||||
function(json, res) {
|
function(json, res) {
|
||||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||||
if (res.status == 200) {
|
let _json = JSON.parse(json)
|
||||||
|
if (_json.code == 0) {
|
||||||
//关闭model
|
//关闭model
|
||||||
$('#deleteCommunityModel').modal('hide');
|
$('#deleteCommunityModel').modal('hide');
|
||||||
vc.emit('communityManage', 'listCommunity', {});
|
vc.emit('communityManage', 'listCommunity', {});
|
||||||
vc.emit('auditCommunityManage', 'listCommunity', {});
|
vc.emit('auditCommunityManage', 'listCommunity', {});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vc.toast(json);
|
vc.toast(_json.msg);
|
||||||
},
|
},
|
||||||
function(errInfo, error) {
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user