refactor: 重构代码结构和类型定义,优化类型安全性和代码可维护性
- 添加类型定义文件和类型引用 - 删除废弃的页面模块和导出文件 - 新增聚合管理模块和插件系统 - 修复类型错误和潜在运行时问题 - 更新API基础URL和配置 - 优化组件类型定义和事件处理 - 重构数据源接口和实现 - 完善文档和开发进度记录
This commit is contained in:
@@ -291,15 +291,15 @@ export const ProductList: React.FC = () => {
|
||||
};
|
||||
|
||||
const handleAddProduct = () => {
|
||||
navigate('/Product/ProductPublishForm');
|
||||
navigate('/dashboard/product/publish');
|
||||
};
|
||||
|
||||
const handleEditProduct = (record: Product) => {
|
||||
navigate(`/Product/ProductDetail?id=${record.id}`);
|
||||
navigate(`/dashboard/product/detail/${record.id}`);
|
||||
};
|
||||
|
||||
const handleViewProduct = (record: Product) => {
|
||||
navigate(`/Product/ProductDetail?id=${record.id}`);
|
||||
navigate(`/dashboard/product/detail/${record.id}`);
|
||||
};
|
||||
|
||||
const handleDeleteProduct = (record: Product) => {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export { ProductDetail } from './ProductDetail';
|
||||
export { ProductPublishForm } from './ProductPublishForm';
|
||||
export { MaterialUpload } from './MaterialUpload';
|
||||
Reference in New Issue
Block a user