Browse Source

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

RuoYi 3 years ago
parent
commit
5621ea4a29
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/layout/components/AppMain.vue

+ 2 - 0
src/layout/components/AppMain.vue

@@ -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
 })