mineadmin / MineAdmin

🎉🎉🎉 MineAdmin是基于Hyperf框架 和 Vue3+Vite5 开发的前后端分离权限管理系统,自适应多终端。特色:后端 crud 生成 + 前端低代码 json 化配置

Home Page:https://www.mineadmin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

后台选项卡切换经常会空白 什么原因啊

yanglongji opened this issue · comments

一阵子不交互 回来切换顶部的选项卡 就空白了

Thanks for opening your first issue here! Be sure to follow the issue template! 感谢您在这里反馈第一个问题!请务必遵循问题模板!

The issue with tabs turning blank in the backend after a period of inactivity could be due to several factors. It might be related to the management of components' state in the keepAlives array within the useKeepAliveStore, which ensures components are not reloaded when switching tabs. If a component's state is improperly managed, it might not render correctly upon returning to its tab.

Another potential cause is the handling of the show state in the index.vue file, which controls component visibility. Incorrect toggling of this state could lead to components not displaying properly.

Session management could also be a factor. If the session or authentication token expires, leading to an automatic logout or session invalidation, the application might not handle this gracefully, resulting in a blank screen.

Lastly, there could be issues related to Vue 3 or Vite 5, such as configuration errors, compatibility issues, or JavaScript errors. Checking the browser's console for errors, ensuring all dependencies are up to date, reviewing Vite and Vue Router configurations, and testing in development mode might provide more insights.

For a more precise diagnosis, any specific error messages or logs would be highly beneficial.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

commented

路由动画