1
0
forked from ruoyi/RuoYi-Vue3

优化代码

This commit is contained in:
RuoYi
2023-11-29 12:43:28 +08:00
parent e6f582bd1a
commit dfb8096387
4 changed files with 19 additions and 17 deletions

View File

@@ -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('/');
});