This commit is contained in:
张成
2025-12-04 10:40:58 +08:00
parent 797e086431
commit a67383d12c
6 changed files with 331 additions and 188 deletions

View File

@@ -636,7 +636,6 @@ function Result() {
try {
const url = await genCardImage();
Taro.saveImageToPhotosAlbum({ filePath: url });
Taro.showToast({ title: "保存成功" });
} catch (e) {
Taro.showToast({ title: "图片保存失败", icon: "none" });
}
@@ -750,16 +749,6 @@ function Result() {
</View>
</View>
</View>
<Canvas
type="2d"
id="exportCanvas"
style={{
width: "0px",
height: "0px",
position: "absolute",
left: "-9999px",
}}
/>
{/* 隐藏的 RadarV2 用于生成完整图片,不显示在界面上 */}
<View style={{ position: "absolute", top: "-9999px", left: "-9999px", width: "0px", height: "0px", overflow: "hidden" }}>
<RadarChartV2