perf: 优化代码
This commit is contained in:
@@ -108,7 +108,7 @@ const styles = computed(() => {
|
||||
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 });
|
||||
|
||||
|
Reference in New Issue
Block a user