| | |
| | | return store.dispatch('tagsView/delView', router.currentRoute).then(({ visitedViews }) => {
|
| | | const latestView = visitedViews.slice(-1)[0]
|
| | | if (latestView) {
|
| | | return router.push(latestView.fullPath)
|
| | | return router.push(latestView.fullPath)
|
| | | }
|
| | | return router.push('/');
|
| | | });
|
| | |
| | | },
|
| | | // 添加tab页签
|
| | | openPage(title, url, params) {
|
| | | var obj = { path: url, meta: { title: title } }
|
| | | const obj = { path: url, meta: { title: title } }
|
| | | store.dispatch('tagsView/addView', obj);
|
| | | return router.push({ path: url, query: params });
|
| | | },
|