0
You are using post.content
, which is coming from your data prop post
. I don’t see you adding content to post
anywhere in your code.
I’m assuming your getter posts
is getting the post data from the store.
So maybe you just need to use that instead?
v-model="posts.content">
Without seeing more of your code I cannot tell you exactly what to do. But your main problem is after you update the store value you need to get that value somehow.
- [Vuejs]-How to access to response data index by javascript
- [Vuejs]-Change ownership of Vue Component
Source:stackexchange.com