fix: some build errors and warnings caused by useless code

This commit is contained in:
2025-10-26 23:39:15 +08:00
parent 28de10061a
commit f202eba35a
4 changed files with 1 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
import React from 'react';
import LayoutWrapper from './components/LayoutWrapper'; import LayoutWrapper from './components/LayoutWrapper';
function App() { function App() {

View File

@@ -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 {

View File

@@ -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';

View File

@@ -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) => {