diff --git a/src/components/ElEditor.vue b/src/components/ElEditor.vue index a09c46b..a840b24 100644 --- a/src/components/ElEditor.vue +++ b/src/components/ElEditor.vue @@ -82,8 +82,8 @@ }; watch( () => attrs.modelValue, - (value, old) => { - if (!old) { + (value) => { + if (value !== unref(content)) { handleReady(); } }, diff --git a/src/views/permission/menu/index.vue b/src/views/permission/menu/index.vue index 8abfcba..7b2dac7 100644 --- a/src/views/permission/menu/index.vue +++ b/src/views/permission/menu/index.vue @@ -17,7 +17,9 @@
菜单
- 新增 + + 新增 +
@@ -120,7 +122,14 @@