[Vuejs]-Want to show updated status value in another component

0👍

The issue here (most likely) is that the value of response.data is an object or an array. You’ve initially defined opportunity as '' which is not an observable object or array. You have 2 choices:

Redefine it as an empty object or array, depending on the response:

opportunity: [] // or {}

Otherwise, use Vue.set() to apply reactivity when changing it:

(Vue.set(state, 'opportunity', value))

Leave a comment