0👍
Did you already declare the resolve variable in your data ? Like
data () {
return {
resolve:null
}
}
And change your promise to arrow function,
return new Promise((resolve, reject) => {
this.resolve = resolve
})
- [Vuejs]-How increase vue cli3 production build speed?
- [Vuejs]-How to keep mounted in 2 component working same time in Vuejs?
Source:stackexchange.com