nidapeng
2024-04-03 658ae28a31f1a8956893ff7b7b29d92c5fdb00f4
company/src/components/common/upload.vue
@@ -57,6 +57,7 @@
            },
            getFile(e) {
                if (e.target && e.target.files.length > 0) {
                    this.$emit('loading')
                    const formdate = new FormData()
                    formdate.append('file', e.target.files[0])
                    formdate.append('folder', this.folder)