上传文件错误无法重新选择文件

This commit is contained in:
gexinzhineng/gxzn27 2023-04-12 11:16:00 +08:00
parent 946a189b82
commit 42035104ac

View File

@ -3,12 +3,7 @@
<!-- 列表 --> <!-- 列表 -->
<XTable @register="registerTable"> <XTable @register="registerTable">
<template #toolbar_buttons> <template #toolbar_buttons>
<XButton <XButton type="primary" preIcon="ep:upload" title="上传文件" @click="uploadDialog" />
type="primary"
preIcon="ep:upload"
title="上传文件"
@click="uploadDialogVisible = true"
/>
</template> </template>
<template #actionbtns_default="{ row }"> <template #actionbtns_default="{ row }">
<XTextButton <XTextButton
@ -166,7 +161,11 @@ const handleDetail = (row: FileApi.FileVO) => {
dialogTitle.value = t('action.detail') dialogTitle.value = t('action.detail')
dialogVisible.value = true dialogVisible.value = true
} }
//
const uploadDialog = () => {
uploadDialogVisible.value = true
uploadDisabled.value = false
}
// ========== ========== // ========== ==========
const handleCopy = async (text: string) => { const handleCopy = async (text: string) => {
let url = text let url = text