fix: some build errors and warnings caused by useless code
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import LayoutWrapper from './components/LayoutWrapper';
|
import LayoutWrapper from './components/LayoutWrapper';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// 基础请求工具函数
|
// 基础请求工具函数
|
||||||
|
|
||||||
import { API_CONFIG } from './config';
|
import { API_CONFIG } from './config';
|
||||||
import type { HTTPValidationError } from './types';
|
|
||||||
|
|
||||||
// 请求选项接口
|
// 请求选项接口
|
||||||
export interface RequestOptions {
|
export interface RequestOptions {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useState, useRef } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Row, Col, Input, Button } from 'antd';
|
import { Row, Col, Input, Button } from 'antd';
|
||||||
import { PlusOutlined, DeleteOutlined } from '@ant-design/icons';
|
import { PlusOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||||
import './KeyValueList.css';
|
import './KeyValueList.css';
|
||||||
|
|||||||
@@ -501,7 +501,6 @@ const ResourceList: React.FC = () => {
|
|||||||
const isMobile = !screens.md;
|
const isMobile = !screens.md;
|
||||||
const [loading, setLoading] = React.useState(false);
|
const [loading, setLoading] = React.useState(false);
|
||||||
const [data, setData] = React.useState<Resource[]>([]);
|
const [data, setData] = React.useState<Resource[]>([]);
|
||||||
const [pageSize, setPageSize] = React.useState<number>(10);
|
|
||||||
const [pagination, setPagination] = React.useState<{ current: number; pageSize: number }>({ current: 1, pageSize: 10 });
|
const [pagination, setPagination] = React.useState<{ current: number; pageSize: number }>({ current: 1, pageSize: 10 });
|
||||||
|
|
||||||
const handleTableChange: TableProps<Resource>['onChange'] = (pg) => {
|
const handleTableChange: TableProps<Resource>['onChange'] = (pg) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user