|
@@ -1,9 +1,10 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
2
|
import { Form, Table } from 'antd';
|
|
3
|
+import router from 'umi/router';
|
3
|
4
|
import AuthButton from '@/components/AuthButton';
|
4
|
5
|
import withActions from '@/components/ActionList';
|
5
|
6
|
import EditIcon from '@/components/EditIcon';
|
6
|
|
-import router from 'umi/router';
|
|
7
|
+import Navigate from '@/components/Navigate';
|
7
|
8
|
import apis from '../../../services/apis';
|
8
|
9
|
import request from '../../../utils/request'
|
9
|
10
|
|
|
@@ -52,7 +53,7 @@ function header(props) {
|
52
|
53
|
<Table dataSource={data}>
|
53
|
54
|
<Column title="图片" dataIndex="imgUrl" key="imgUrl"
|
54
|
55
|
render={(text, record) => (
|
55
|
|
- <img onClick={toEditCustom(record.imgId, record.imgType)} src={record.imgUrl} height="120px" width="150px" style={{ objectFit: 'contain' }} />
|
|
56
|
+ <Navigate onClick={toEditCustom(record.imgId, record.imgType)} ><img src={record.imgUrl} height="120px" width="150px" style={{ objectFit: 'contain' }} /></Navigate>
|
56
|
57
|
)} />
|
57
|
58
|
<Column title="类型" dataIndex="imgType" key="imgType"
|
58
|
59
|
render={(text, record) => (
|