mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-11 06:57:10 +08:00
refactor: 文件管理,重命名,下载,滚动查询
This commit is contained in:
@@ -18,8 +18,9 @@ export function openFileRenameModal(data: FileItem) {
|
||||
}),
|
||||
onBeforeOk: async () => {
|
||||
const isInvalid = await ModalContentRef.value?.formRef?.validate()
|
||||
const modelParams = ModalContentRef.value?.formRef?.model
|
||||
if (isInvalid) return false
|
||||
await updateFile({ name: data.name }, data.id)
|
||||
await updateFile({ name: modelParams?.name }, data.id)
|
||||
Message.success('重命名成功')
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user