Browse Source

修复没有重叠的判断

RuoYi 1 year ago
parent
commit
4250792a2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Editor/index.vue

+ 1 - 1
src/components/Editor/index.vue

@@ -73,7 +73,7 @@ const styles = computed(() => {
 
 const content = ref("");
 watch(() => props.modelValue, (v) => {
-  if (v !== content) {
+  if (v !== content.value) {
     content.value = v === undefined ? "<p></p>" : v;
   }
 }, { immediate: true });