mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: restructure local upload component for improved readability
This commit is contained in:
parent
a8c4e48e31
commit
8e5aa084f6
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue