您好,我正在使用 vuex persistedstate 来持久化我的状态。
import createPersistedState from 'vuex-persistedstate'
const store = new Vuex.Store({
// ...
plugins: [createPersistedState()]
})
我想做的是在另一个选项卡中更新商店状态,更新后的商店状态应该反射(reflect)在我的应用程序的其他打开的选项卡中。
我怎样才能做到这一点。
最佳答案
关于javascript - 持久化状态使用 vuex-persistedstate : store state in first tab doesnot update when i mutate state in another tab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49839307/