优化代码

This commit is contained in:
wuxw 2022-07-19 23:42:26 +08:00
parent e895e134fc
commit a953eb8e7a

View File

@ -133,16 +133,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
$('#addAccessControlMachineModel').modal('hide');
vc.component.clearAddMachineInfo();
vc.emit('accessControlMachineManage', 'listMachine', {});
return;
}
vc.toast(json);
vc.toast(_json.msg);
},
function(errInfo, error) {
console.log('请求失败处理');