From 43b2d4bc13ca325f2a358ab3c56199251bdba0cd Mon Sep 17 00:00:00 2001 From: cbb <2625274797@qq.com> Date: Mon, 21 Sep 2026 02:52:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=20HTML=20?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E7=BC=96=E7=A0=81=E6=8D=9F=E5=9D=8F=EF=BC=88?= =?UTF-8?q?PowerShell=20=E9=BB=98=E8=AE=A4=E7=BC=96=E7=A0=81=E8=AF=AF?= =?UTF-8?q?=E5=86=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从 2c6235d/261caf5 恢复 motor/index/can 页 UTF-8, 仅用 Python 以 UTF-8 重写 ?v= 缓存戳;boot_ecat 去掉误写问号。 勿再对 UTF-8 源文件用 Get-Content|Set-Content 默认编码。 --- js/ota/boot_ecat.js | 2 +- pages/can.html | 86 ++++++++++----------- pages/index.html | 180 ++++++++++++++++++++++---------------------- pages/motor.html | 152 +++++++++++++++++++------------------ 4 files changed, 214 insertions(+), 206 deletions(-) diff --git a/js/ota/boot_ecat.js b/js/ota/boot_ecat.js index 6716030..62b02ab 100644 --- a/js/ota/boot_ecat.js +++ b/js/ota/boot_ecat.js @@ -682,7 +682,7 @@ export async function bootEcatFlash() { /* commit 成功只证明 A 区写进去了;邮箱读不到 APP 名 = EtherCAT 没恢复, * 对用户就是「不能用」。这里禁止画成半成功:进度钉在提交完成那一档, * 阶段 6/7 全部警告态,文案直接说清副作用。 */ - setEcatStage(6, 'warn', '已复位?'); + setEcatStage(6, 'warn', '已复位'); setEcatStage(7, 'err', 'EtherCAT 未恢复'); setEcatStatus('err', '刷写已提交,但 EtherCAT 不可用'); setEcatPct(100, '镜像已写入,但总线邮箱读不到 APP —— EtherCAT 当前不可用'); diff --git a/pages/can.html b/pages/can.html index ef6dbc5..ccc17fd 100644 --- a/pages/can.html +++ b/pages/can.html @@ -3,8 +3,8 @@
-