update type

v1.0
bobi 2019-05-13 14:44:29 +08:00
parent 656c2ee522
commit b89667118d
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@
var treeObj, loadIndex;
$.ajax({
url: "data/permission-tree.json",
type: "post",
type: "get",
dataType: "json",
data: {roleId: 1},
beforeSend: function () {

View File

@ -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});