知识库历史文件
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
import { FileUpload, DynamicFormItem } from 'shared/components'
|
||||
|
||||
// 单独导入(推荐)
|
||||
import FileUpload from 'shared/components/FileUpload'
|
||||
import FileUpload from 'shared/components/file/FileUpload'
|
||||
import DynamicFormItem from 'shared/components/DynamicFormItem'
|
||||
```
|
||||
|
||||
**可用组件:**
|
||||
- `shared/components/FileUpload` - 文件上传组件(支持 cover/dialog/content 三种模式)
|
||||
- `shared/components/file/FileUpload` - 文件上传组件(支持 cover/dialog/content 三种模式)
|
||||
- `shared/components/DynamicFormItem` - 动态表单项组件
|
||||
|
||||
---
|
||||
@@ -100,7 +100,7 @@ import { authAPI } from 'shared/authAPI'
|
||||
import { fileAPI } from 'shared/fileAPI'
|
||||
|
||||
// ✅ 新路径(推荐)
|
||||
import FileUpload from 'shared/components/FileUpload'
|
||||
import FileUpload from 'shared/components/file/FileUpload'
|
||||
import { authAPI } from 'shared/api/auth'
|
||||
import { fileAPI } from 'shared/api/file'
|
||||
```
|
||||
@@ -113,7 +113,7 @@ import { fileAPI } from 'shared/api/file'
|
||||
|
||||
```typescript
|
||||
// ✅ 推荐:路径清晰,便于理解
|
||||
import FileUpload from 'shared/components/FileUpload'
|
||||
import FileUpload from 'shared/components/file/FileUpload'
|
||||
import { authAPI } from 'shared/api/auth'
|
||||
|
||||
// ❌ 不推荐:路径模糊
|
||||
|
||||
Reference in New Issue
Block a user