diff --git a/Web/public/doc-code/seed/treeLayout.vue b/Web/public/doc-code/seed/treeLayout.vue index 2b360b9..91e861f 100644 --- a/Web/public/doc-code/seed/treeLayout.vue +++ b/Web/public/doc-code/seed/treeLayout.vue @@ -163,7 +163,7 @@ export default { * 必要方法 * 重新列表数据 */ - onReset() { + onResetQuery() { /* 与普通查询页不同的是,这里的父节点参数不应该在重置后被清空 */ Object.keys(this.query).forEach((p) => { if (p !== 'pid') { diff --git a/Web/src/components/authorized/index.js b/Web/src/components/authorized/index.js index aa1a55b..5b7e8e5 100644 --- a/Web/src/components/authorized/index.js +++ b/Web/src/components/authorized/index.js @@ -184,7 +184,7 @@ export default { let flag = auth(props.auth) if (flag) { - return scopedSlots.default() + return scopedSlots.default && scopedSlots.default() } return false diff --git a/Web/src/pages/system/_seed/treeLayout.vue b/Web/src/pages/system/_seed/treeLayout.vue index 2b360b9..91e861f 100644 --- a/Web/src/pages/system/_seed/treeLayout.vue +++ b/Web/src/pages/system/_seed/treeLayout.vue @@ -163,7 +163,7 @@ export default { * 必要方法 * 重新列表数据 */ - onReset() { + onResetQuery() { /* 与普通查询页不同的是,这里的父节点参数不应该在重置后被清空 */ Object.keys(this.query).forEach((p) => { if (p !== 'pid') {