forked from aixan/RuoYi-Vue3-Template
优化代码
This commit is contained in:
@@ -35,7 +35,7 @@ export default {
|
||||
return useTagsViewStore().delView(router.currentRoute.value).then(({ visitedViews }) => {
|
||||
const latestView = visitedViews.slice(-1)[0]
|
||||
if (latestView) {
|
||||
return router.push(latestView.fullPath)
|
||||
return router.push(latestView.fullPath)
|
||||
}
|
||||
return router.push('/');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user