自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-06 cf43493d7aa9c1a83cb1551c102f501f1dfde9b0
src/main/webapp/static/js/role/rolePower.js
@@ -14,7 +14,7 @@
    });
    $.ajax({
        url: "/power/"+parent.roleId+"/auth",
        url: baseUrl+"/power/"+parent.roleId+"/auth",
        headers: {'token': localStorage.getItem('token')},
        method: 'GET',
        async: false,
@@ -24,7 +24,7 @@
            if (res.code === 200){
                tree.setChecked('powerTree', res.data);
            } else if (res.code === 403){
                top.location.href = "/";
                top.location.href = baseUrl;
            } else {
                layer.msg(res.msg)
            }
@@ -51,7 +51,7 @@
        });
        // console.log(JSON.stringify(param));
        $.ajax({
            url: "/power/auth",
            url: baseUrl+"/power/auth",
            traditional: true,
            headers: {'token': localStorage.getItem('token')},
            data: {
@@ -63,7 +63,7 @@
                if (res.code === 200){
                    parent.layer.closeAll();
                } else if (res.code === 403){
                    top.location.href = "/";
                    top.location.href = baseUrl;
                } else {
                    layer.msg(res.msg)
                }