#
luxiaotao1123
2024-02-24 d5a4bc022bf7a7362874137b6d869119935afadf
#
1个文件已修改
19 ■■■■■ 已修改文件
zy-asrs-flow/src/App.jsx 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/App.jsx
@@ -16,8 +16,6 @@
const defaultAvatar = 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png'
// https://xflow.antv.vision/zh-CN/docs/tutorial/solutions/dag DAG 流程图
// https://ant-design.antgroup.com/components/table-cn 表格
// https://procomponents.ant.design/components/form 表单pro
export function render(oldRender) {
  const token = getToken();
  if (!token || token?.length === 0) {
@@ -105,9 +103,6 @@
        return getRemoteMenu();
      },
    },
    waterMarkProps: {
      // content: initialState?.currentUser?.nickname,
    },
    footerRender: () => <Footer />,
    onPageChange: () => {
      const { location } = history;
@@ -148,7 +143,9 @@
        width: '331px',
      },
    ],
    links: isDev
    // 显示在菜单右下角的快捷操作
    links: false
      // links: isDev
      ? [
        <Link key="openapi" to="/umi/plugin/openapi" target="_blank">
          <LinkOutlined />
@@ -171,6 +168,7 @@
              enableDarkTheme
              settings={initialState?.settings}
              onSettingChange={(settings) => {
                console.log(settings);
                setInitialState((preInitialState) => ({
                  ...preInitialState,
                  settings,
@@ -182,6 +180,15 @@
      );
    },
    ...initialState?.settings,
    layout: 'mix',  // layout 的菜单模式,side:右侧导航,top:顶部导航
    // contentStyle: () => {  //     layout 的内容区 style
    //   return
    // },
    contentWidth: 'Fluid', // layout 的内容模式,Fluid:自适应(全屏),Fixed:定宽 (小) 1200px
    fixedHeader: true,  // 固定 header
    fixSiderbar: true,  // 固定导航
    // settings: defaultSettings, // layout 的设置
    waterMarkProps: { content: initialState?.currentUser?.nickname }, //水印
  };
};