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

master
RuoYi 3 years ago
parent a2aa467030
commit 5621ea4a29
  1. 2
      src/layout/components/AppMain.vue

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

Loading…
Cancel
Save