feat: 功能优化
This commit is contained in:
@@ -93,6 +93,10 @@ const props = defineProps({
|
||||
fileCategory: {
|
||||
type: String,
|
||||
default: 'video'
|
||||
},
|
||||
groupId: {
|
||||
type: Number,
|
||||
default: null
|
||||
}
|
||||
})
|
||||
|
||||
@@ -214,7 +218,7 @@ const handleConfirm = () => {
|
||||
|
||||
// 使用传入的fileCategory,如果没有则使用默认值
|
||||
const category = props.fileCategory || DEFAULT_FILE_CATEGORY
|
||||
emit('confirm', filesWithCover, category)
|
||||
emit('confirm', filesWithCover, category, props.groupId)
|
||||
}
|
||||
|
||||
// 处理 visible 变化
|
||||
|
||||
Reference in New Issue
Block a user