首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
问与答
mounted()和通过 ...mapState 实现的 computed 执行顺序
kgloveyou
·
2018 年 8 月 7 日
· 2705 次点击
这是一个创建于 2804 天前的主题,其中的信息可能已经有所发展或是发生改变。
computed:{
...mapState(
mapStore.name
, ['mapInstance']),
...mapState(
mapStore.name
, ['mapConfig']),
},
利用上述代码从 store 中读取了 computed 属性值
mounted(){
if(this.mapInstance){
...
}
},
在 mounted 中却获取不到 mapInstance,提示未定义。
这里该怎么读取?
目前尚无回复
computed
mapstate
mounted
读取
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
2999 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 04:04
·
PVG 12:04
·
LAX 21:04
·
JFK 00:04
♥ Do have faith in what you're doing.
❯