-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
undefined
Environment
Chrome
Reproduction link
https://antdv.com/docs/vue/introduce/
Steps to reproduce
Firstly, define a component A which use vuex.
Then, use function Modal.confirm,
Modal.confrim({
content: h => ,
})
What is expected?
get $store correctly
What is actually happening?
TypeError: Cannot read property 'state' of undefined
at VueComponent.mappedState (vuex.esm.js?2f62:945)
at Watcher.get (vue.esm.js?a026:4488)
When i console.log(this.$store) in A, it show undefined.