| | |
| | | } |
| | | } |
| | | |
| | | // const loading = this.$loading({ |
| | | // lock: true, |
| | | // text: '上传中,请等待', |
| | | // spinner: 'el-icon-loading', |
| | | // background: 'rgba(0, 0, 0, 0.7)' |
| | | // }); |
| | | // this.$emit('loading') |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: '上传中,请等待', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }); |
| | | this.$emit('loading') |
| | | const formdate = new FormData() |
| | | formdate.append('file', e.target.files[0]) |
| | | formdate.append('folder', this.folder) |
| | |
| | | this.$message.error(e) |
| | | }) |
| | | .finally(() => { |
| | | // loading.close(); |
| | | loading.close(); |
| | | this.$refs.file.value = null |
| | | }) |
| | | } |