mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
重构多个组件以优化代码格式和可读性,删除不必要的文件,更新类型定义,添加数据分析路由
This commit is contained in:
@@ -26,7 +26,7 @@ function saveCompoent() {
|
||||
}).then((canvas) => {
|
||||
canvas.toBlob(
|
||||
(data) => {
|
||||
saveAs(data, props.fileName + '.png')
|
||||
saveAs(data!, props.fileName + '.png')
|
||||
},
|
||||
'image/png',
|
||||
1,
|
||||
@@ -36,5 +36,11 @@ function saveCompoent() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NButton type="primary" secondary @click="saveCompoent"> {{ buttonText ?? '保存为图片' }} </NButton>
|
||||
<NButton
|
||||
type="primary"
|
||||
secondary
|
||||
@click="saveCompoent"
|
||||
>
|
||||
{{ buttonText ?? '保存为图片' }}
|
||||
</NButton>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user