From d098f725be13e0e203cadd25b668020a28ddadbc Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 19 May 2026 01:10:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(phone-image):=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E5=B0=8E=E5=87=BA=E7=9A=84applyFontScale=E8=AA=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG-1修復: PhoneImageEngine.applyFontScale是IIFE內部私有函數,未在公開API導出。 updateConfig()內部已自動調用applyFontScale(),HTML中的直接調用是多餘的且會報錯。 --- view/admin/post/phone_image.html | 1 - 1 file changed, 1 deletion(-) diff --git a/view/admin/post/phone_image.html b/view/admin/post/phone_image.html index cc89594..2a0eb36 100644 --- a/view/admin/post/phone_image.html +++ b/view/admin/post/phone_image.html @@ -650,7 +650,6 @@ $codeScaleValue.text(val.toFixed(1) + 'x'); currentConfig.codeFontScale = val; PhoneImageEngine.updateConfig({ codeFontScale: val }); - PhoneImageEngine.applyFontScale(); } $codeScaleSelect.on('change', function() {