forked from FoundKeyGang/FoundKey
Use immediate: true for page.textarea.vue::text
This commit is contained in:
parent
cff82ea52e
commit
d32228a347
1 changed files with 3 additions and 2 deletions
|
@ -13,11 +13,12 @@ const props = defineProps<{
|
||||||
hpml: Hpml;
|
hpml: Hpml;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
let text = $ref(props.hpml.interpolate(props.block.text));
|
let text = $ref('');
|
||||||
|
|
||||||
watch(props.hpml.vars, () => {
|
watch(props.hpml.vars, () => {
|
||||||
text = props.hpml.interpolate(props.block.text);
|
text = props.hpml.interpolate(props.block.text) as string;
|
||||||
}, {
|
}, {
|
||||||
deep: true,
|
deep: true,
|
||||||
|
immediate: true,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue