diff --git a/role-add.html b/role-add.html index 1a3c38a..549cd9a 100644 --- a/role-add.html +++ b/role-add.html @@ -78,7 +78,7 @@ var treeObj, loadIndex; $.ajax({ url: "data/permission-tree.json", - type: "post", + type: "get", dataType: "json", data: {roleId: 1}, beforeSend: function () { diff --git a/role-edit.html b/role-edit.html index 4a83a40..a9c34ae 100644 --- a/role-edit.html +++ b/role-edit.html @@ -77,9 +77,9 @@ // zTree异步请求所有权限树节点 var treeObj, loadIndex; $.ajax({ - url: 'data/permission-tree.json', - type: 'post', - dataType: 'json', + url: "data/permission-tree.json", + type: "get", + dataType: "json", data: {roleId: 1}, beforeSend: function () { loadIndex = layer.load(0, {shade: 0.1});