优化代码

This commit is contained in:
RuoYi
2023-11-29 12:59:22 +08:00
parent b7abcd8374
commit 21a17945fa
12 changed files with 155 additions and 139 deletions

View File

@@ -35,7 +35,7 @@ export default {
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('/');
});