From 4022eef822b7991f24c28fb2d01a157c305561e5 Mon Sep 17 00:00:00 2001 From: 王强 Date: Fri, 23 Feb 2024 16:02:52 +0800 Subject: [PATCH] fix --- api.ts | 2 +- components/List.tsx | 4 ++-- interface.d.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api.ts b/api.ts index 76fdf78..013a8a0 100644 --- a/api.ts +++ b/api.ts @@ -1,5 +1,5 @@ import type { http } from "@/typing/http"; -import { ARCHIVES_HOST } from "@/utils/host"; +import {} from "@/utils/host"; import request from "@/utils/request"; /** diff --git a/components/List.tsx b/components/List.tsx index f1e7ae1..d31fe61 100644 --- a/components/List.tsx +++ b/components/List.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Divider, message, Popconfirm, Popover, Table } from "antd"; +import { Divider, message, Popconfirm, Table } from "antd"; import { delete替换nameApi } from "../api"; import { useStore } from "../index"; @@ -33,7 +33,7 @@ export default function List() { align="left" render={(record: 替换name.ListVO) => ( <> - 编辑 + editItem(record)}>编辑 确定删除?} onConfirm={() => deleteItem(record.id || -1)}> 删除 diff --git a/interface.d.ts b/interface.d.ts index 5ab3f23..2c6a4cb 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1,5 +1,8 @@ declare namespace 替换name { interface QueryParams {} - interface ListVO {} + interface ListVO { + id?: number; + name?: string; + } } -- libgit2 0.22.2