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;
|
||||
}>();
|
||||
|
||||
let text = $ref(props.hpml.interpolate(props.block.text));
|
||||
let text = $ref('');
|
||||
|
||||
watch(props.hpml.vars, () => {
|
||||
text = props.hpml.interpolate(props.block.text);
|
||||
text = props.hpml.interpolate(props.block.text) as string;
|
||||
}, {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue