refactor: 优化代码结构并修复类型问题
- 移除未使用的TabPane组件 - 修复类型定义和导入方式 - 优化mock数据源的环境变量判断逻辑 - 更新文档结构并归档旧文件 - 添加新的UI组件和Memo组件 - 调整API路径和响应处理
This commit is contained in:
@@ -7,6 +7,8 @@ export default defineConfig({
|
||||
'process.env.REACT_APP_REDUX_DEVTOOLS': process.env.REACT_APP_REDUX_DEVTOOLS || 'true',
|
||||
'process.env.REACT_APP_MSW_DEBUG': process.env.REACT_APP_MSW_DEBUG || 'true',
|
||||
},
|
||||
|
||||
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
@@ -58,31 +60,6 @@ export default defineConfig({
|
||||
path: 'overview',
|
||||
component: '@/pages/DashboardPage',
|
||||
},
|
||||
{
|
||||
path: 'aggregation',
|
||||
routes: [
|
||||
{
|
||||
path: 'products',
|
||||
component: '@/pages/Aggregation/AggregatedProductList',
|
||||
},
|
||||
{
|
||||
path: 'orders',
|
||||
component: '@/pages/Aggregation/AggregatedProductList',
|
||||
},
|
||||
{
|
||||
path: 'inventory',
|
||||
component: '@/pages/Aggregation/AggregatedProductList',
|
||||
},
|
||||
{
|
||||
path: 'customers',
|
||||
component: '@/pages/Aggregation/AggregatedProductList',
|
||||
},
|
||||
{
|
||||
path: 'authorization',
|
||||
component: '@/pages/Aggregation/AuthorizationManage',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'operation-agent',
|
||||
component: '@/pages/OperationAgent',
|
||||
@@ -167,10 +144,6 @@ export default defineConfig({
|
||||
path: 'exception',
|
||||
component: '@/pages/Orders/ExceptionOrder',
|
||||
},
|
||||
{
|
||||
path: 'aggregation',
|
||||
component: '@/pages/Orders/OrderAggregation',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -585,6 +558,10 @@ export default defineConfig({
|
||||
path: 'platform-account',
|
||||
component: '@/pages/Settings/PlatformAccountConfig',
|
||||
},
|
||||
{
|
||||
path: 'platform-auth',
|
||||
component: '@/pages/Settings/PlatformAuth',
|
||||
},
|
||||
{
|
||||
path: 'exchange-rate',
|
||||
component: '@/pages/Settings/ExchangeRateConfig',
|
||||
@@ -598,8 +575,12 @@ export default defineConfig({
|
||||
component: '@/pages/Settings/WinNodeConfig',
|
||||
},
|
||||
{
|
||||
path: 'subscription',
|
||||
component: '@/pages/Settings/SubscriptionManage',
|
||||
path: 'subscription',
|
||||
component: '@/pages/Settings/SubscriptionManage',
|
||||
},
|
||||
{
|
||||
path: 'service-manager',
|
||||
component: '@/pages/Settings/ServiceManager',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -619,4 +600,5 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
fastRefresh: true,
|
||||
esbuildMinifyIIFE: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user