Commit 28347897 by 李进峰

update

parent 56912ebf
- 基本地址
- 基本地址
......@@ -143,8 +143,9 @@ curl --location --request GET 'http://tx-gz18.heyqiwu.cn/api/juben/work/operate/
onRequestCloseModal: handleClose
}"
/>
<div>
</div>
</template>
<script>
import Uppy from '@uppy/core'
import Tus from '@uppy/tus'
import zh_CN from '@uppy/locales/lib/zh_CN'
......@@ -169,17 +170,6 @@ export default {
};
},
mounted() {
this.getData();
this.fileUpload1 = new Uppy({ id: 'fileUpload1', autoProceed: false, debug: true, locale: zh_CN})
.use(Tus, { endpoint: filetusdUploadUrl })
.on('complete', (result) => {
console.log("this:", this);
console.log("result:", result);
let files = result.successful;
let file = files[0];
this.updateDia.uploadFileObj.fileUrl = file["uploadURL"];
this.updateDia.uploadFileObj.fileName = file["name"];
})
},
methods:{
openUppy(){
......@@ -190,6 +180,16 @@ export default {
}
},
created() {
this.fileUpload1 = new Uppy({ id: 'fileUpload1', autoProceed: false, debug: true, locale: zh_CN})
.use(Tus, { endpoint: filetusdUploadUrl })
.on('complete', (result) => {
console.log("this:", this);
console.log("result:", result);
let files = result.successful;
let file = files[0];
this.updateDia.uploadFileObj.fileUrl = file["uploadURL"];
this.updateDia.uploadFileObj.fileName = file["name"];
})
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment