Commit 4022eef822b7991f24c28fb2d01a157c305561e5

Authored by 王强
1 parent 86107778

fix

1 1 import type { http } from "@/typing/http";
2   -import { ARCHIVES_HOST } from "@/utils/host";
  2 +import {} from "@/utils/host";
3 3 import request from "@/utils/request";
4 4  
5 5 /**
... ...
components/List.tsx
1 1 import React from "react";
2   -import { Divider, message, Popconfirm, Popover, Table } from "antd";
  2 +import { Divider, message, Popconfirm, Table } from "antd";
3 3 import { delete<feewee>替换name</feewee>Api } from "../api";
4 4 import { useStore } from "../index";
5 5  
... ... @@ -33,7 +33,7 @@ export default function List() {
33 33 align="left"
34 34 render={(record: <feewee>替换name</feewee>.ListVO) => (
35 35 <>
36   - <a>编辑</a>
  36 + <a onClick={() => editItem(record)}>编辑</a>
37 37 <Divider type="vertical" />
38 38 <Popconfirm title={<span>确定删除?</span>} onConfirm={() => deleteItem(record.id || -1)}>
39 39 <a style={{ color: 'red' }}>删除</a>
... ...
interface.d.ts
1 1 declare namespace <feewee>替换name</feewee> {
2 2 interface QueryParams {}
3 3  
4   - interface ListVO {}
  4 + interface ListVO {
  5 + id?: number;
  6 + name?: string;
  7 + }
5 8 }
... ...