Closed andyqier88 closed 2 years ago
As shown in the following example, the key property is bound to a variable key2
. Update the key2
variable whenever the form needs to be refreshed.
<parser :key="key2" :form-conf="formConf" @submit="sumbitForm2" />
As shown in the following example, the key property is bound to a variable
key2
. Update thekey2
variable whenever the form needs to be refreshed.<parser :key="key2" :form-conf="formConf" @submit="sumbitForm2" />
copy that
when we write this code in
template
like thisthe key of parser is dynamic like
new Date().getTime()
,when we change another inputv-model="test"
the values of the form in parser will be clearedwe can solve it by setting a settled value like :key="2022"