1👍
The mistake was not adding a return for entry. The correct code looks like this:
const props = withDefaults(defineProps<Props>(), {
entry: () => {
return {
id: 1,
body: "",
emoji: null,
createdAt: new Date(),
userId: 1,
};
},
userName: "Unknown",
});
Thank you
Moritz Ringler
for the help
- [Vuejs]-After submit the form the vue reset all the data
- [Vuejs]-Vue.JS on top of existing python/django/jinja app for filter and list render
Source:stackexchange.com