1
airyland 2016 年 4 月 23 日
直接在 Views_Edit 加个 data () 获取数据,看文档。
|
3
airyland 2016 年 4 月 23 日 @ZGLHHH 额。。这看下文档目录就知道了吧。 http://vuejs.github.io/vue-router/zh-cn/pipeline/data.html
|
5
nnil 2016 年 4 月 24 日 via Android
给 template 取个 id
|
7
miaotaizi 2016 年 5 月 5 日 请细看 http://vuejs.github.io/vue-router/zh-cn/pipeline/data.html
你应该在 Views_Edit 的对象中添加 ```js route: { data: function (transition) { return {propsData: data} } } ``` |
8
miaotaizi 2016 年 5 月 5 日
大概就是这样 return 的对象 会自动赋值到当前组件的 data 上去
|