修复浏览器刷新后页面切换页签无法加载问题

This commit is contained in:
RuoYi 2021-12-18 21:48:05 +08:00
parent a2aa467030
commit 5621ea4a29
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@
<script setup>
let store = useStore()
const route = useRoute()
store.dispatch('tagsView/addCachedView', route)
const cachedViews = computed(() => {
return store.state.tagsView.cachedViews
})