RuoYi
2021-08-13 5139265d32cd9de6067b29a5a6f3deb2991cd2f5
默认首页使用keep-alive缓存
已修改6个文件
12 ■■■■■ 文件已修改
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/router/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/utils/request.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/system/role/selectUser.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
@@ -13,7 +13,6 @@
import com.ruoyi.system.service.ISysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.util.Collection;
import java.util.List;
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
@@ -12,7 +12,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import java.util.List;
ruoyi-ui/src/router/index.js
@@ -66,8 +66,8 @@
      {
        path: 'index',
        component: (resolve) => require(['@/views/index'], resolve),
        name: '首页',
        meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
    ]
  },
ruoyi-ui/src/utils/request.js
@@ -64,7 +64,7 @@
          location.href = '/index';
        })
      }).catch(() => {});
      return Promise.reject()
      return Promise.reject('令牌验证失败')
    } else if (code === 500) {
      Message({
        message: msg,
ruoyi-ui/src/views/index.vue
@@ -601,7 +601,7 @@
<script>
export default {
  name: "index",
  name: "Index",
  data() {
    return {
      // 版本号
ruoyi-ui/src/views/system/role/selectUser.vue
@@ -64,7 +64,7 @@
  props: {
    // 角色编号
    roleId: {
      type: String
      type: [Number, String]
    }
  },
  data() {