diff --git a/server.js b/server.js index 93a4b0e..293702d 100644 --- a/server.js +++ b/server.js @@ -53,6 +53,7 @@ function renderBootScript(config, mode) { 'window.APP_PROJECT = ' + safeJsonForScript(project) + ';', "window.APP_MODE = '" + mode + "';", 'window.__INITIAL_CONFIG__ = ' + safeJsonForScript(config) + ';', + "document.documentElement.setAttribute('data-app-mode', window.APP_MODE);", '' ].join('\n'); } diff --git a/飞书审批配置文件_V1.0.html b/飞书审批配置文件_V1.0.html index 0be4fdf..60317da 100644 --- a/飞书审批配置文件_V1.0.html +++ b/飞书审批配置文件_V1.0.html @@ -410,11 +410,13 @@ a{color:#3370ff;text-decoration:none} .custom-date-range-config{padding:10px;background:var(--bg);border-radius:4px} .data-load-banner{background:#fff7e6;border-bottom:1px solid #ffd591;color:#ad6800;padding:10px 16px;font-size:13px;line-height:1.5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0} .data-load-banner.hidden{display:none !important} +html[data-app-mode="standalone"] .platform-only{display:none !important}
@@ -442,9 +444,9 @@ window.__INITIAL_CONFIG__ = null;