yangzongzhuan / RuoYi-Vue3

:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统
http://ruoyi.vip
MIT License
4.82k stars 1.96k forks source link

在多个页面 tab 点击切换时候,会遇到页面无响应,只能刷新 #140

Closed wushangshang closed 1 year ago

wushangshang commented 1 year ago

经过多次实验,是 多个 tab 之间点击时候切换到首页 tab,这时候就会出现页面无响应,我是 yarn dev 时候出现的,这时候也完全没有报错,不知道生产情况会不会这样

wushangshang commented 1 year ago

解决了,缓存原因。 router 的 index.js里这边noCache改为 true { path: '', component: Layout, redirect: '/index', children: [ { path: '/index', component: () => import('@/views/index'), name: 'Index', meta: { noCache: true,title: 'home page', icon: 'dashboard', affix: true } } ] },