From 062a2bc888a7e45f1e11810e1711c7827cbde63d Mon Sep 17 00:00:00 2001 From: xty Date: Tue, 20 Aug 2024 13:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas-context.uvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/component/canvas/canvas-context.uvue b/pages/component/canvas/canvas-context.uvue index c50cdab9..cd419fed 100644 --- a/pages/component/canvas/canvas-context.uvue +++ b/pages/component/canvas/canvas-context.uvue @@ -825,7 +825,7 @@ success: () => { console.log(`${key}字体加载成功`) context.save() - const text = value["text"] as String + const text = value["text"] as string context.font = `20px ${key}` context.fillStyle = "red" yOffset += 25 -- GitLab