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; var treeObj, loadIndex;
$.ajax({ $.ajax({
url: "data/permission-tree.json", url: "data/permission-tree.json",
type: "post", type: "get",
dataType: "json", dataType: "json",
data: {roleId: 1}, data: {roleId: 1},
beforeSend: function () { beforeSend: function () {

View File

@ -77,9 +77,9 @@
// zTree异步请求所有权限树节点 // zTree异步请求所有权限树节点
var treeObj, loadIndex; var treeObj, loadIndex;
$.ajax({ $.ajax({
url: 'data/permission-tree.json', url: "data/permission-tree.json",
type: 'post', type: "get",
dataType: 'json', dataType: "json",
data: {roleId: 1}, data: {roleId: 1},
beforeSend: function () { beforeSend: function () {
loadIndex = layer.load(0, {shade: 0.1}); loadIndex = layer.load(0, {shade: 0.1});