v-model="selectedId" 在页面刚刚执行的时候,动态给赋值没有效果。
Shangri-GitHub opened this issue · comments
在页面刚刚执行的时候,动态给赋值没有效果
mounted: function () {
this.selectedId = 2;
}
已解决,用这个可以
beforeMount: function () {
this.selectedId = 2;
},
可以根据 selectedId 值的改变 控制导航定位吗?
是在什么钩子函数里赋值的呢,改变selectId是可以控制导航位置的
| |
尹斌
邮箱:yinbin_web@163.com
|
签名由 网易邮箱大师 定制
在2018年10月10日 09:25,haocaiMP 写道:
可以根据 selectedId 值的改变 控制导航定位吗?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.