diff --git a/view/admin/category_add.html b/view/admin/category_add.html index aca222f9f..bce5da655 100644 --- a/view/admin/category_add.html +++ b/view/admin/category_add.html @@ -990,7 +990,7 @@ //获取上级菜单 $.ajax({ url: "/admin/category/gettree", - data:{mold:{{controller.get('mold')}}}, + data:{mold:'all'}, success: function (msg) { /* 展示生成的HTML */ $("#pid").html(category_to_html(msg)); diff --git a/view/admin/channel_add.html b/view/admin/channel_add.html index afa2229c9..682417218 100644 --- a/view/admin/channel_add.html +++ b/view/admin/channel_add.html @@ -135,8 +135,7 @@ //获取上级菜单 $.ajax({ - url: "/admin/category/gettree", - data:{mold:'all'}, + url: "/admin/channel/getchannel", success: function (msg) { /* 展示生成的HTML */ $("#pid").html(category_to_html(msg));