浏览代码

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

RuoYi 3 年之前
父节点
当前提交
5621ea4a29
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 })