From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 23 六月 2022 17:42:58 +0800 Subject: [PATCH] bug修复 --- src/pages/ai/FileUpload/btn.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/pages/ai/FileUpload/btn.vue b/src/pages/ai/FileUpload/btn.vue index 0bffa02..c72b67c 100644 --- a/src/pages/ai/FileUpload/btn.vue +++ b/src/pages/ai/FileUpload/btn.vue @@ -33,14 +33,17 @@ }, mounted() { + this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs) this.$nextTick(() => { let props = {accept:''}; if(this.sourceType == 1){ props.accept = '.mp4'; }else if(this.sourceType == 2){ props.accept = '.jpg,.jpeg,.png'; + }else if(this.sourceType == 3){ + props.accept = '.tar,.tar.gz,.gz'; } - this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, props) + this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs) }) } } -- Gitblit v1.8.0