fix: restructure local upload component for improved readability
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
wxg0103 2025-12-02 11:06:55 +08:00
parent a8c4e48e31
commit 8e5aa084f6

View File

@ -384,24 +384,25 @@
}} }}
</el-button> </el-button>
</div> </div>
<el-divider style="margin: 16px 0"/> <div v-if="props.applicationDetails.file_upload_setting.local_upload">
<el-upload <el-divider style="margin: 16px 0"/>
v-if="props.applicationDetails.file_upload_setting.local_upload" <el-upload
action="#" action="#"
multiple multiple
:auto-upload="false" :auto-upload="false"
:show-file-list="false" :show-file-list="false"
:accept="getAcceptList()" :accept="getAcceptList()"
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)" :on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
v-model:file-list="fileAllList" v-model:file-list="fileAllList"
ref="upload" ref="upload"
class="import-button" class="import-button"
> >
<el-button class="w-full url-upload-button">{{ <el-button class="w-full url-upload-button">{{
$t('chat.uploadFile.localUpload') $t('chat.uploadFile.localUpload')
}} }}
</el-button> </el-button>
</el-upload> </el-upload>
</div>
</el-card> </el-card>
</div> </div>
</div> </div>