From 9210bc3d0b2b7be7089cc50e82422519370b30a6 Mon Sep 17 00:00:00 2001 From: qiqi Date: Fri, 27 Nov 2026 22:01:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(csp):=20=E5=8E=BB=E6=8E=89=20index.html=20?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E5=86=85=E8=81=94=20style/script=20=E2=80=94?= =?UTF-8?q?=E2=80=94=20=E6=8F=92=E4=BB=B6=E6=A0=B7=E5=BC=8F=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E7=9A=84=E7=9C=9F=E5=9B=A0=EF=BC=88=E5=90=8C=20v3.26.?= =?UTF-8?q?9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 现象:风格库 / 浏览器 / 提示词库的面板与画布上的样式节点全部丢样式(DOM 正常、宿主外链 style.css 正常,只有插件动态注入的 ` - -const markup = `
- -
生图工作台
-
-
正在启动…
-
` - -// 轮询进度总线:真实百分比(IWBBootProgress 就绪后),之前显示已等待秒数 -const script = `` - -module.exports = { css, markup, script } +module.exports = { markup } diff --git a/scripts/build.js b/scripts/build.js index f5eff78..004089e 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -240,14 +240,14 @@ const html = [ '无限画布', '', '', - // v3.26.109:静态加载屏内联在 index.html 里。资料目录在局域网时,app.js 要等存储装载完 - // 才渲染 React,那段时间原本是纯白板(实测 15s);这段 HTML/CSS 不依赖任何脚本就能出画面。 - bootSplash.css, + // v3.26.109:静态启动屏标记内联在 index.html(样式来自外链 style.css)。 + // 资料目录在局域网时 app.js 要等存储装载完才渲染 React,那段时间原本是纯白板(实测 15s)。 + // 注意:这里只能放标记,不能放内联