浏览代码

首页 - 设置数据不缓存

wangggziwen 8 月之前
父节点
当前提交
127f425c14
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-ui/src/router/index.js

+ 1 - 1
ruoyi-ui/src/router/index.js

@@ -70,7 +70,7 @@ export const constantRoutes = [
         path: 'index',
         component: () => import('@/views/index'),
         name: 'Index',
-        meta: { title: '首页', icon: 'dashboard', affix: true }
+        meta: { title: '首页', icon: 'dashboard', affix: true, keepAlive: false }
       }
     ]
   },