vue在三层<router-view>中会出现实际渲染与路径不一致!

Created on 27 May 2017  ·  1Comment  ·  Source: vuejs/vue

Version

2.3.3

Reproduction link

http://baidu.com

Steps to reproduce

routes: [

{
path: '/', component: Main,
children: [
{
path: '/help_document',
component: Help_Document,
},
//我的任务-所有工作流
{
path: 'work', component: Work_Main,
children: [
{
path: 'task',
component: Work_MyTask
},
{
path: 'release',
component: Work_MyRelease
}
}
}
]

以上是router的设置!
在Main的vue中有一个
在Work_Main中 也存在一个

实际操作: ‘/help_document’ 路径下 第一次跳转 ‘work/release’ (渲染没有问题);

'work/release'跳转到 ‘work/task’ (渲染没有问题);
“work/task” 跳转到 ‘/help_document’ ;以上渲染都没有问题.
但是: 再次从 ‘/help_document’ 路径下 跳转 ‘work/release’,

What is expected?

实际渲染的应该是 ‘work/release’的内容

What is actually happening?

浏览器地址栏地址显示正确,渲染出来的画面却是 ‘work/task’中的内容.

Most helpful comment

请别偷懒,好好给重现。

>All comments

请别偷懒,好好给重现。

Was this page helpful?
0 / 5 - 0 ratings