#
luxiaotao1123
2024-02-18 56c4f53923375dc005c25530ee253b1e178a1c6c
zy-asrs-flow/src/App.jsx
@@ -16,6 +16,8 @@
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) {
@@ -103,7 +105,7 @@
      },
    },
    waterMarkProps: {
      content: initialState?.currentUser?.nickname,
      // content: initialState?.currentUser?.nickname,
    },
    footerRender: () => <Footer />,
    onPageChange: () => {
@@ -183,7 +185,6 @@
  // 前置守卫
  requestInterceptors: [
    (url, options) => {
      console.log('request ====>:', url);
      const token = getToken();
      if (token && options.headers) {
        options.headers[TOKEN_HEADER_NAME] = token;
@@ -205,7 +206,6 @@
      if (token) {
        setToken(token);
      }
      console.log(response);
      return response;
    }
  ]