Open simonliang20 opened 1 month ago
how to solve
how to solve
now i rewrite toolbar:
const renderToolbar = ({ nodes }: ImageRenderToolbarProps) => {
return [
nodes.rotateCounterclockwise,
nodes.rotateClockwise,
nodes.resizeToOriginalSize,
nodes.zoomOut,
nodes.zoomIn,
h('div', {
style: {
marginTop: '5px'
},
onClickCapture: (e) => {
e.stopPropagation()
// rewrite download
saveAs(pic.value, '111.svg')
}
}, nodes.download),
nodes.close,
]
}
:render-toolbar="renderToolbar"
Describe the bug
And the result is open new tab, such as:
I check the source code related download,the problem in here:
Steps to reproduce
i upload the detail code link by codesandbox
Link to minimal reproduction
https://codesandbox.io/p/sandbox/beautiful-cache-5jfrvt?workspaceId=be254d71-098e-48a3-a6ef-3612a43349d7
System Info
Used Package Manager
npm
Validations