axetroy / axetroy/stackoverflow
nuxt.js 框架,无法在 asyncData 和 fetch 函数中,获取Vue组件的options
Open
前端框架
- Dominant language
- No language data
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```js
export default {
asyncData () {
// 这里获取不到组件的options,既this.$options
},
fetch () {
// 这里获取不到组件的options,既this.$options
}
}
```
暂时想不到hack的办法,本想着通过``beforeCreate``生命周期,强行``overite``这两个函数
没想到这两个函数的优先级更高,比``beforeCreate``更先执行,这就很尴尬了...
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.