perf: 优化代码
This commit is contained in:
@@ -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 });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user