Skip to content

[BUG]修改布局样式,刷新页面不生效,只有清除浏览器缓存才能生效 #33

Description

@wangkailun

修改文件内容如下:

//文件目录 src\app\@shared\layouts\da-layout\default-layout.config.ts

import { DaLayoutConfig } from './da-layout.type';
import { WIDE_LAYOUT_CONFIG ,WATERFALL_LAYOUT_CONFIG,TOP_NAV_LAYOUT_CONFIG, COMMON_LAYOUT_CONFIG  } from './da-layout.config'

export const DEFAULT_LAYOUT_CONFIG: DaLayoutConfig = COMMON_LAYOUT_CONFIG;
//{
//   id: 'leftRight',
//   mode: 'sidebarTop',
//   header: {
//     fixed: true,
//     firHeader: {
//       height: 60
//     },
//     secHeader: {
//       hidden: true
//     },
//     hidden: false
//   },
//   sidebar: {
//     fixed: true,
//     firSidebar: {
//       width: 240
//     },
//     secSidebar: {
//       hidden: true
//     },
//     hidden: false
//   },
//   footer: {
//     hidden: false
//   },
//   hideLogo: false
// };

看起来是项目启动后会把这部分配置吃到浏览器的 Local Storage,但是刷新页面并没有重新去reload 这个配置。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions