李志伟 преди 3 години
родител
ревизия
167a1ef817
променени са 3 файла, в които са добавени 1 реда и са изтрити 13 реда
  1. 0
    2
      config/routes.js
  2. 1
    0
      src/components/rich-editor/index.jsx
  3. 0
    11
      src/pages/dashboard/components/BannerStatis.jsx

+ 0
- 2
config/routes.js Целия файл

@@ -21,13 +21,11 @@ export default [
21 21
   {
22 22
     path: '/dashboard',
23 23
     name: '工作台',
24
-    access:'admin',
25 24
     icon: 'DashboardOutlined',
26 25
     component: './dashboard',
27 26
   },  
28 27
   {
29 28
     path: '/',
30
-    access:'admin',
31 29
     redirect: '/dashboard',
32 30
     hideInMenu: true,
33 31
   },

+ 1
- 0
src/components/rich-editor/index.jsx Целия файл

@@ -8,6 +8,7 @@ export default forwardRef((props, ref) => {
8 8
     window.tinymce.init({
9 9
       selector: `#${id}`,
10 10
       menubar: false,
11
+      branding:false,
11 12
       setup: (editor) => {
12 13
         editor.on('change', () => {
13 14
           props.onChange(editor.getContent());

+ 0
- 11
src/pages/dashboard/components/BannerStatis.jsx Целия файл

@@ -1,5 +1,4 @@
1 1
 import { useEffect, useState } from 'react';
2
-import { history } from 'umi';
3 2
 import { Row, Col } from 'antd'
4 3
 import { AppstoreOutlined, AuditOutlined, FieldTimeOutlined } from '@ant-design/icons'
5 4
 import { getcomm } from '@/services/statis';
@@ -14,13 +13,6 @@ const colorList = [
14 13
 export default (props) => {
15 14
   const [cardData, setCardData] = useState()
16 15
 
17
-  const toApplichtion = () => {
18
-    history.push('../../applicationList');
19
-  }
20
-  const toAudit = () => {
21
-    history.push('../../examine');
22
-  }
23
-
24 16
   useEffect(() => {
25 17
     getcomm().then((res) => {
26 18
       setCardData(res || []);
@@ -46,8 +38,6 @@ export default (props) => {
46 38
           {...colorList[1]}
47 39
           icon={<AuditOutlined />
48 40
           }
49
-          onClick1={toAudit}
50
-          onClick2={toAudit}
51 41
         />
52 42
       </Col>
53 43
       <Col span={8}>
@@ -57,7 +47,6 @@ export default (props) => {
57 47
           data2={{ title: '本月提交数', value: cardData ? cardData[5].value : 0 }}
58 48
           {...colorList[2]}
59 49
           icon={<FieldTimeOutlined />}
60
-          onClick1={toApplichtion}
61 50
         />
62 51
       </Col>
63 52
     </Row>