From 25532832c42f5b943e0aa43f8e91447b20d90fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Sun, 9 Mar 2025 11:21:57 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20=E6=9B=B4=E6=96=B0Mixly.Web.FooterLay?= =?UTF-8?q?erExample?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/modules/mixly-modules/web/footerlayer-example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/mixly-modules/web/footerlayer-example.js b/common/modules/mixly-modules/web/footerlayer-example.js index 9a4667af..df73b161 100644 --- a/common/modules/mixly-modules/web/footerlayer-example.js +++ b/common/modules/mixly-modules/web/footerlayer-example.js @@ -78,7 +78,7 @@ class FooterLayerExampleExt extends FooterLayerExample { dataToWorkspace(inPath) { const data = goog.get(path.join(Env.boardDirPath, 'examples', inPath)); - this.updateCode(inPath.substring(inPath.lastIndexOf('.')), data); + this.updateCode(path.extname(inPath), data); } }