|
|
@@ -1,7 +1,12 @@
|
|
|
import {retryErrorInterface} from '@apis';
|
|
|
import {GSErrorListData} from '@models';
|
|
|
import {useMutation} from '@tanstack/react-query';
|
|
|
-import {NORMAL_TABLE_WIDTH, HUGE_TABLE_WIDTH, SMALL_TABLE_WIDTH} from '@utils';
|
|
|
+import {
|
|
|
+ NORMAL_TABLE_WIDTH,
|
|
|
+ HUGE_TABLE_WIDTH,
|
|
|
+ SMALL_TABLE_WIDTH,
|
|
|
+ MIDDLE_TABLE_WIDTH,
|
|
|
+} from '@utils';
|
|
|
import {Button, message} from 'antd';
|
|
|
import {ColumnsType} from 'antd/es/table';
|
|
|
import {useState} from 'react';
|
|
|
@@ -10,6 +15,8 @@ const columns: ColumnsType<GSErrorListData> = [
|
|
|
{title: '请求地址', dataIndex: 'url', width: NORMAL_TABLE_WIDTH},
|
|
|
{title: '错误信息', dataIndex: 'errorInfo', width: HUGE_TABLE_WIDTH},
|
|
|
{title: '请求内容', dataIndex: 'dataVal', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '请求类型', dataIndex: 'type', width: SMALL_TABLE_WIDTH},
|
|
|
+ {title: '请求时间', dataIndex: 'scrq', width: MIDDLE_TABLE_WIDTH},
|
|
|
];
|
|
|
|
|
|
function useRetry(refetch: () => void) {
|