From b89667118d7436ea80854f9ce400b49f619f36cf Mon Sep 17 00:00:00 2001 From: bobi Date: Mon, 13 May 2019 14:44:29 +0800 Subject: [PATCH] update type --- role-add.html | 2 +- role-edit.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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});