子应用使用vue + vuex unmount的时候如何卸载vuex #2185
Unanswered
Harris-peng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
let store function render () { store = new Vuex.store({}) } function unmount () { store = null }
如上如果仅卸载store的实例,state中的数据是不会被卸载掉的
重新进入微应用vuex会报错
[vuex] Do not mutate vuex store state outside mutation handlers.
Beta Was this translation helpful? Give feedback.
All reactions