mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-09-27 14:52:40 +00:00
修复浏览器刷新后页面切换页签无法加载问题
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
let store = useStore()
|
let store = useStore()
|
||||||
|
const route = useRoute()
|
||||||
|
store.dispatch('tagsView/addCachedView', route)
|
||||||
const cachedViews = computed(() => {
|
const cachedViews = computed(() => {
|
||||||
return store.state.tagsView.cachedViews
|
return store.state.tagsView.cachedViews
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user