Browse Source

去掉水印

charles_c 5 months ago
parent
commit
36fb1a0400
3 changed files with 10 additions and 9 deletions
  1. 3 3
      src/app.tsx
  2. 1 5
      src/pages/User/Login/index.tsx
  3. 6 1
      src/pages/User/index.tsx

+ 3 - 3
src/app.tsx

@@ -48,9 +48,9 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
         return <AvatarDropdown>{avatarChildren}</AvatarDropdown>;
       },
     },
-    waterMarkProps: {
-      content: initialState?.currentUser?.username,
-    },
+    // waterMarkProps: {
+    //   content: initialState?.currentUser?.username,
+    // },
     // footerRender: () => <Footer />,
     onPageChange: () => {
       const { location } = history;

+ 1 - 5
src/pages/User/Login/index.tsx

@@ -25,10 +25,8 @@ const useStyles = createStyles(({ token }) => {
       flexDirection: 'column',
       height: '100vh',
       overflow: 'auto',
-      backgroundImage:
-        "url('https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/V-_oS6r-i7wAAAAAAAAAAAAAFl94AQBr')",
       backgroundSize: '100% 100%',
-      paddingTop: '100px',
+      paddingTop: '200px',
     },
   };
 });
@@ -66,7 +64,6 @@ const Login: React.FC = () => {
       }
     } catch (error) {
       console.log(error);
-      message.error('登录失败,请重试');
     }
   };
 
@@ -75,7 +72,6 @@ const Login: React.FC = () => {
       <div
         style={{
           flex: '1',
-          padding: '32px 0',
         }}
       >
         <LoginForm

+ 6 - 1
src/pages/User/index.tsx

@@ -64,6 +64,11 @@ const UserList: React.FC = () => {
       valueType: 'digit',
     },
     {
+      title: '创建时间',
+      dataIndex: 'createdAt',
+      valueType: 'dateTime',
+    },
+    {
       title: '操作',
       dataIndex: 'option',
       valueType: 'option',
@@ -78,7 +83,7 @@ const UserList: React.FC = () => {
           编辑用户
         </a>,
         <a
-          key="edit"
+          key="editPoints"
           onClick={() => {
             setUpdatePointsModalOpen(true);
             setCurrentRow(record);