优化菜单编辑回调方法

This commit is contained in:
hdm 2023-05-31 17:37:08 +08:00
parent 114996f224
commit b1a0cb7ada
2 changed files with 4 additions and 2 deletions

View File

@ -154,7 +154,9 @@
let callback = function (e) {
layer.msg(e.msg);
if (e.code == 0) {
tool.sideClose(1000);
setTimeout(function(){
parent.location.reload();
},1000);
}
}
tool.post("/home/rule/add", data.field, callback);

View File

@ -24,7 +24,7 @@
function gouguInit() {
var treeTable = layui.treeTable, tool = layui.tool;
layui.pageTable = treeTable.render({
layui.trees = treeTable.render({
elem: '#treeTable'
,url: "/home/rule/index"
,tree: { // treeTable 特定属性集