diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js index 9f56a6ac..61dacd9d 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js @@ -107,9 +107,9 @@ $(function() { var expandFlag = false; $("#expandAllBtn").click(function() { if (expandFlag) { - $('#bootstrap-table').bootstrapTreeTable('expandAll'); + $('#bootstrap-tree-table').bootstrapTreeTable('expandAll'); } else { - $('#bootstrap-table').bootstrapTreeTable('collapseAll'); + $('#bootstrap-tree-table').bootstrapTreeTable('collapseAll'); } expandFlag = expandFlag ? false: true; })