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中有一個 <router-view></router-view>
在Work_Main中 也存在一個 <router-view></router-view>
實際操作: ‘/help_document’ 路徑下 第一次跳轉 ‘work/release’ (渲染沒有問題);
'work/release'跳轉到 ‘work/task’ (渲染沒有問題);
“work/task” 跳轉到 ‘/help_document’ ;以上渲染都沒有問題.
但是: 再次從 ‘/help_document’ 路徑下 跳轉 ‘work/release’,
瀏覽器地址欄地址顯示正確,渲染出來的畫面卻是 ‘work/task’中的內容.
求大神解答?
uj5u.com熱心網友回復:
兄弟,我也遇到這個問題,請問你有解決嗎?轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/240718.html
標籤:其他
上一篇:echarts markdown
