张延森 4 년 전
부모
커밋
616bb6d50a
5개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 1
    1
      src/pages/Medical/Hospital/index.jsx
  2. 2
    1
      src/pages/Post/Type/index.jsx
  3. 1
    1
      src/pages/System/Role/index.jsx
  4. 1
    1
      src/pages/User/List/index.jsx
  5. 2
    2
      src/pages/document.ejs

+ 1
- 1
src/pages/Medical/Hospital/index.jsx 파일 보기

@@ -144,7 +144,7 @@ export default () => {
144 144
   };
145 145
 
146 146
   const actions = [
147
-    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={handleAdd}>
147
+    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={() => handleAdd()}>
148 148
       新建
149 149
     </Button>,
150 150
   ];

+ 2
- 1
src/pages/Post/Type/index.jsx 파일 보기

@@ -45,12 +45,13 @@ const PostTypeList = (props) => {
45 45
       tableRef.current.reload()
46 46
       setVisible(false)
47 47
     }).catch((e) => {
48
+      console.error(e)
48 49
       notification.warn({ message: e.message })
49 50
     })
50 51
   }
51 52
 
52 53
   const actions = [
53
-    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={handleEdit}>
54
+    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={() => handleEdit()}>
54 55
       新建
55 56
     </Button>,
56 57
   ];

+ 1
- 1
src/pages/System/Role/index.jsx 파일 보기

@@ -52,7 +52,7 @@ export default () => {
52 52
   ]
53 53
   
54 54
   const actions = [
55
-    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={handleEdit}>
55
+    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={() => handleEdit()}>
56 56
       新建
57 57
     </Button>,
58 58
   ];

+ 1
- 1
src/pages/User/List/index.jsx 파일 보기

@@ -99,7 +99,7 @@ export default () => {
99 99
   ]
100 100
   
101 101
   const actions = [
102
-    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={handleEdit}>
102
+    <Button key="button" icon={<PlusOutlined />} type="primary" onClick={() => handleEdit()}>
103 103
       新建
104 104
     </Button>,
105 105
   ];

+ 2
- 2
src/pages/document.ejs 파일 보기

@@ -21,11 +21,11 @@
21 21
       name="viewport"
22 22
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
23 23
     />
24
-    <title>Ant Design Pro</title>
24
+    <title>云致科技</title>
25 25
     <link rel="icon" href="<%= context.config.publicPath +'favicon.ico'%>" type="image/x-icon" />
26 26
   </head>
27 27
   <body>
28
-    <noscript>Out-of-the-box mid-stage front/design solution!</noscript>
28
+    <noscript>请启用 JavaScript 并使用现代浏览器 !</noscript>
29 29
     <div id="root">
30 30
       <style>
31 31
         html,