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