|
|
@ -67,11 +67,9 @@ |
|
|
|
<script> |
|
|
|
import submit from '@/components/content/submit.vue' |
|
|
|
import uvUpload from '@/uni_modules/uv-upload/components/uv-upload/uv-upload.vue' |
|
|
|
import fileUpload from '@/components/base/fileUpload.vue' |
|
|
|
export default { |
|
|
|
components : { |
|
|
|
submit, |
|
|
|
fileUpload, |
|
|
|
uvUpload, |
|
|
|
}, |
|
|
|
data() { |
|
|
@ -120,7 +118,14 @@ |
|
|
|
this.fileList.splice(e.index, 1) |
|
|
|
}, |
|
|
|
afterRead(e){ |
|
|
|
this.fileList.push(...e.file) |
|
|
|
let self = this |
|
|
|
e.file.forEach(file => { |
|
|
|
self.$Oss.ossUpload(file.url).then(url => { |
|
|
|
self.fileList.push({ |
|
|
|
url |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
submit(){}, |
|
|
|
preview(){}, |
|
|
|