From 1b45f0a1cd3461c827e4018026d2cfd05c1b62bd Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期四, 14 九月 2023 16:54:43 +0800
Subject: [PATCH] 修复自定义字典样式不生效的问题(I81F03)
---
src/components/Editor/index.vue | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue
index ef3a832..6409a96 100644
--- a/src/components/Editor/index.vue
+++ b/src/components/Editor/index.vue
@@ -56,8 +56,7 @@
],
},
placeholder: '璇疯緭鍏ュ唴瀹�',
- readOnly: props.readOnly,
- theme: 'snow'
+ readOnly: props.readOnly
});
const styles = computed(() => {
@@ -73,7 +72,7 @@
const content = ref("");
watch(() => props.modelValue, (v) => {
- if (v !== content) {
+ if (v !== content.value) {
content.value = v === undefined ? "<p></p>" : v;
}
}, { immediate: true });
--
Gitblit v1.9.3