fix 81550

This commit is contained in:
赵霄
2024-01-31 09:26:04 +08:00
parent 8e29bd72d0
commit 071adbb30c
+17 -2
View File
@@ -11,7 +11,7 @@
<!-- <a-button @click="handleTest">测试</a-button>-->
<!-- </a-button-group>-->
<a-modal v-model="visible" title="插入图片" @ok="handleOk">
<a-modal v-model="visible" title="插入图片" @ok="handleOk" @cancel="handleCancel">
<a-form-model
id="components-form-demo-validate-other"
:model="form"
@@ -432,6 +432,9 @@ export default {
handleOk () {
console.log('图片上传和了')
this.visible = false
if (!this.imageIpUrl) {
return
}
window.Asc.scope.imageUrl = this.imageIpUrl
window.Asc.scope.title = this.form.title
window.Asc.scope.imgSize = this.form.size
@@ -523,12 +526,24 @@ export default {
}
})
setTimeout(() => {
this.form = {}
this.form = {
title: '',
size: '中'
}
this.imageIpUrl = ''
this.imageUrl = ''
}, 200)
},
handleCancel () {
this.visible = false
this.form = {
title: '',
size: '中'
}
this.imageIpUrl = ''
this.imageUrl = ''
},
handleChange (info) {
if (info.file.status === 'uploading') {