From 7644a877181b30602cf05dfa7016323284f33bc5 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期四, 05 十二月 2024 16:45:54 +0800
Subject: [PATCH] 优化代码

---
 src/components/Editor/index.vue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue
index 0a696f2..1bd01ed 100644
--- a/src/components/Editor/index.vue
+++ b/src/components/Editor/index.vue
@@ -108,7 +108,7 @@
 const content = ref("");
 watch(() => props.modelValue, (v) => {
   if (v !== content.value) {
-    content.value = v === undefined ? "<p></p>" : v;
+    content.value = v == undefined ? "<p></p>" : v;
   }
 }, { immediate: true });
 

--
Gitblit v1.9.3