refactor: 重构项目结构并优化代码

- 删除无用的文件和错误日志
- 创建统一的 imports 模块集中管理依赖
- 重构组件使用新的 imports 方式
- 修复文档路径大小写问题
- 优化类型定义和接口导出
- 更新依赖版本
- 改进错误处理和API配置
- 统一组件导出方式
This commit is contained in:
2026-03-27 16:56:06 +08:00
parent 2748456d8a
commit 22308fe042
337 changed files with 37060 additions and 57483 deletions

View File

@@ -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 { CreativeDataSource } from '@/services/creativeDataSource';
import type { CreativeItem } from '@/services/creativeDataSource';
const { Option } = Select;
const { RangePicker } = DatePicker;
const CreativePage: React.FC = () => {
const CreativePage: FC = () => {
const [data, setData] = useState<CreativeItem[]>([]);
const [loading, setLoading] = useState(false);
const [searchText, setSearchText] = useState('');