The error is as follows:
Cause Analysis:The latest version of Vue 3 has stricter syntax detection. Before, we could do two-way binding through v-model, but now the above error will be reported;
Solution: v-model="show"
:modelValue="show"
It can be rewritten .
【Debug】前端报错: v-model cannot be used on a prop, because local prop bindings are not writable.
Guess you like
Origin blog.csdn.net/Onion_521257/article/details/129145033
Ranking