类似这样
/demo/1 的页面
页面内再 new vue
新的 app 可以局部刷新
路由还是一样的 /demo/1 只是多了参数?flag=xx
我自己测试了下里面的 app 内容不会显示不知道什么原因也没有执行,created
![]() |
2
heishu 78 天前
@xiaohundun 这种的话,那其他 component 是算 app 还是 App2 的状态呢,数据共享吗
|
![]() |
3
xiaohundun 78 天前
|
4
dongtingyue OP @xiaohundun 嵌套已经可以了,但是现在又出现个问题。
父页面 <router-view></router-view> 子页面通过 component 的方式可以正常渲染 通过 ``` render: function (createElement) { return createElement('h2') } ``` 无法渲染,是什么原因? |