Skip to content

Commit 8e5aa08

Browse files
committed
fix: restructure local upload component for improved readability
1 parent a8c4e48 commit 8e5aa08

File tree

1 file changed

+19
-18
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+19
-18
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -384,24 +384,25 @@
384384
}}
385385
</el-button>
386386
</div>
387-
<el-divider style="margin: 16px 0"/>
388-
<el-upload
389-
v-if="props.applicationDetails.file_upload_setting.local_upload"
390-
action="#"
391-
multiple
392-
:auto-upload="false"
393-
:show-file-list="false"
394-
:accept="getAcceptList()"
395-
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
396-
v-model:file-list="fileAllList"
397-
ref="upload"
398-
class="import-button"
399-
>
400-
<el-button class="w-full url-upload-button">{{
401-
$t('chat.uploadFile.localUpload')
402-
}}
403-
</el-button>
404-
</el-upload>
387+
<div v-if="props.applicationDetails.file_upload_setting.local_upload">
388+
<el-divider style="margin: 16px 0"/>
389+
<el-upload
390+
action="#"
391+
multiple
392+
:auto-upload="false"
393+
:show-file-list="false"
394+
:accept="getAcceptList()"
395+
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
396+
v-model:file-list="fileAllList"
397+
ref="upload"
398+
class="import-button"
399+
>
400+
<el-button class="w-full url-upload-button">{{
401+
$t('chat.uploadFile.localUpload')
402+
}}
403+
</el-button>
404+
</el-upload>
405+
</div>
405406
</el-card>
406407
</div>
407408
</div>

0 commit comments

Comments
 (0)