refactor: 重构项目结构并优化代码
- 删除无用的文件和错误日志 - 创建统一的 imports 模块集中管理依赖 - 重构组件使用新的 imports 方式 - 修复文档路径大小写问题 - 优化类型定义和接口导出 - 更新依赖版本 - 改进错误处理和API配置 - 统一组件导出方式
This commit is contained in:
@@ -1,13 +1,31 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Card, Table, Button, Space, Input, message, Tag, Modal, Form, Select, DatePicker, Row, Col, Statistic } from 'antd';
|
||||
import { ReloadOutlined, PlusOutlined, SearchOutlined } from '@ant-design/icons';
|
||||
import {
|
||||
useState,
|
||||
useEffect,
|
||||
Card,
|
||||
Table,
|
||||
Button,
|
||||
Space,
|
||||
Input,
|
||||
message,
|
||||
Tag,
|
||||
Modal,
|
||||
Form,
|
||||
Select,
|
||||
DatePicker,
|
||||
Row,
|
||||
Col,
|
||||
Statistic,
|
||||
ReloadOutlined,
|
||||
PlusOutlined,
|
||||
SearchOutlined,
|
||||
Option,
|
||||
RangePicker,
|
||||
FC,
|
||||
} from '@/imports';
|
||||
import { ChatbotDataSource } from '@/services/chatbotDataSource';
|
||||
import type { ChatbotItem } from '@/services/chatbotDataSource';
|
||||
|
||||
const { Option } = Select;
|
||||
const { RangePicker } = DatePicker;
|
||||
|
||||
const ChatbotPage: React.FC = () => {
|
||||
const ChatbotPage: FC = () => {
|
||||
const [data, setData] = useState<ChatbotItem[]>([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [searchText, setSearchText] = useState('');
|
||||
|
||||
Reference in New Issue
Block a user