diff --git a/pages/component/canvas/canvas-context.uvue b/pages/component/canvas/canvas-context.uvue index c50cdab99acf0ff6c6e0090a32614b91ab4a0ceb..cd419fed97b78225dfc31ffda3917f4c72f8e057 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