Commit fff4cfd0 by 天痕 Committed by Gitee

修复,刷新菜单缓存失效问题

Signed-off-by: 天痕 <614891294@qq.com>
parent 04a94ad9
...@@ -188,6 +188,7 @@ const refreshMenu = async () => { ...@@ -188,6 +188,7 @@ const refreshMenu = async () => {
try { try {
await message.confirm('即将更新缓存刷新浏览器!', '刷新菜单缓存') await message.confirm('即将更新缓存刷新浏览器!', '刷新菜单缓存')
// 清空,从而触发刷新 // 清空,从而触发刷新
wsCache.delete(CACHE_KEY.USER)
wsCache.delete(CACHE_KEY.ROLE_ROUTERS) wsCache.delete(CACHE_KEY.ROLE_ROUTERS)
// 刷新浏览器 // 刷新浏览器
location.reload() location.reload()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment