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