perf: 优化代码

This commit is contained in:
insistence
2024-12-11 10:01:45 +08:00
parent 1453402ac3
commit a2a0e4ff1c

View File

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