优化代码

This commit is contained in:
RuoYi
2023-11-29 12:38:45 +08:00
parent e6d0599b25
commit cbcfabee2a
16 changed files with 160 additions and 144 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('/');
});