落日与鲸
2025-02-28 573193bb8ba686b06b5132cd233f953cc06d310d
management/src/pages/Login/index.tsx
@@ -72,7 +72,7 @@
      id: 'pages.login.success',
      defaultMessage: '登录成功!',
    });
    const userInfo = { userName: data.name };
    const userInfo = { userName: data.name,...data };
    localStorage.setItem('userInfo', JSON.stringify(userInfo));
    let permissionList: any[] = [
      "/work_order_transaction_management/work_order_item_configuration",
@@ -94,6 +94,8 @@
      "/system_setting/people_management/edit",
      "/work_order_transaction_management/problem_type_management/add",
      "/system_setting/unit_management/add",
      "/system_setting/people_management/detail",
      "/system_setting/role_management/detail",
      "/system_setting/unit_management",
      "/message_notification",
      "/system_setting/role_management/add",
@@ -105,6 +107,7 @@
      "/system_setting/position_management",
      "/system_setting",
      "/system_setting/people_management",
      "/work_order_transaction_management/work_order_item_configuration/save",
    ];
    let accessObj: any = {};
    permissionList.map((item) => {
@@ -114,11 +117,12 @@
        accessObj[item] = data.menu.includes(item);
      }
    });
    setInitialState((s: any) => ({
      ...s,
      token: data.token,
      userName:data.name,
      permission: accessObj,
      currentUser: userInfo,
      settings: Settings,
@@ -167,7 +171,7 @@
        >
          <div style={{ width: '787px', fontSize: '26px', textAlign: 'center' }}>
            <h1>
              “三个身边”群众工作机制问题化解
              “三个身边”群众工作机制
            </h1>
            <h1>平台</h1>
          </div>