diff --git a/ruoyi-ui/public/static/UEditorPlus/dialogs/table/edittable.js b/ruoyi-ui/public/static/UEditorPlus/dialogs/table/edittable.js index f75bcd2..fc5ad11 100644 --- a/ruoyi-ui/public/static/UEditorPlus/dialogs/table/edittable.js +++ b/ruoyi-ui/public/static/UEditorPlus/dialogs/table/edittable.js @@ -221,11 +221,8 @@ }, setAutoSize: function () { var me = this; - // autoSizePage.checked = true; - setSizePage.checked = true - // me.autoSizePageHanler(); - me.setSizePageHanler() - + autoSizePage.checked = true; + me.autoSizePageHanler(); } }; diff --git a/ruoyi-ui/src/views/cms/editor/index.vue b/ruoyi-ui/src/views/cms/editor/index.vue index 6c3ffcf..16e47d3 100644 --- a/ruoyi-ui/src/views/cms/editor/index.vue +++ b/ruoyi-ui/src/views/cms/editor/index.vue @@ -147,6 +147,7 @@ export default { handler(val) { if (val !== undefined) { this.reset() + this.getCategoryList() this.getContentById(val) } }, @@ -223,16 +224,18 @@ export default { getCategoryList() { getLeavesCategoryList().then(response => { this.categoryList = response.data - let flag = false; - this.categoryList.forEach(item => { - if (item.id === this.$route.query.categoryId) { - this.form.categoryId = this.$route.query.categoryId.toString() - flag = true; - } - if (!flag){ + if (!!this.$route.query.categoryId){ + let flag = false; + this.categoryList.forEach(item => { + if (item.id === this.$route.query.categoryId) { + this.form.categoryId = this.$route.query.categoryId.toString() + flag = true; + } + if (!flag){ this.form.categoryId = "" - } - }) + } + }) + } }) }, handleChangeType() {