|
@@ -30,7 +30,7 @@ import { IDeleteResponse } from "../../../components/api/Article";
|
|
|
|
|
|
|
|
const { Link, Text } = Typography;
|
|
const { Link, Text } = Typography;
|
|
|
|
|
|
|
|
-interface IItem {
|
|
|
|
|
|
|
+export interface IWord {
|
|
|
sn: number;
|
|
sn: number;
|
|
|
wordId: string;
|
|
wordId: string;
|
|
|
word: string;
|
|
word: string;
|
|
@@ -95,7 +95,7 @@ const Widget = () => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <ProTable<IItem>
|
|
|
|
|
|
|
+ <ProTable<IWord>
|
|
|
actionRef={ref}
|
|
actionRef={ref}
|
|
|
columns={[
|
|
columns={[
|
|
|
{
|
|
{
|
|
@@ -305,7 +305,7 @@ const Widget = () => {
|
|
|
console.log(url);
|
|
console.log(url);
|
|
|
const res = await get<IApiResponseDictList>(url);
|
|
const res = await get<IApiResponseDictList>(url);
|
|
|
|
|
|
|
|
- const items: IItem[] = res.data.rows.map((item, id) => {
|
|
|
|
|
|
|
+ const items: IWord[] = res.data.rows.map((item, id) => {
|
|
|
const date = new Date(item.updated_at);
|
|
const date = new Date(item.updated_at);
|
|
|
const id2 =
|
|
const id2 =
|
|
|
((params.current || 1) - 1) * (params.pageSize || 20) + id + 1;
|
|
((params.current || 1) - 1) * (params.pageSize || 20) + id + 1;
|