mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix(图表): 修复在预览状态下,下载图表图片点一次下载两次的问题
This commit is contained in:
parent
750f549bc3
commit
7608677520
@ -165,8 +165,10 @@ const handleInnerMouseDown = e => {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
currentInstance = getCurrentInstance()
|
currentInstance = getCurrentInstance()
|
||||||
|
const methodName = 'componentImageDownload-' + config.value.id
|
||||||
|
useEmitt().emitter.off(methodName)
|
||||||
useEmitt({
|
useEmitt({
|
||||||
name: 'componentImageDownload-' + config.value.id,
|
name: methodName,
|
||||||
callback: () => {
|
callback: () => {
|
||||||
htmlToImage()
|
htmlToImage()
|
||||||
}
|
}
|
||||||
|
@ -1112,8 +1112,10 @@ onMounted(() => {
|
|||||||
// do stopAnimation
|
// do stopAnimation
|
||||||
})
|
})
|
||||||
settingAttribute()
|
settingAttribute()
|
||||||
|
const methodName = 'componentImageDownload-' + element.value.id
|
||||||
|
useEmitt().emitter.off(methodName)
|
||||||
useEmitt({
|
useEmitt({
|
||||||
name: 'componentImageDownload-' + element.value.id,
|
name: methodName,
|
||||||
callback: () => {
|
callback: () => {
|
||||||
htmlToImage()
|
htmlToImage()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user