From e1e4a80330e9fe57b20f3b2fa0bcbf988199ebe6 Mon Sep 17 00:00:00 2001 From: Weiming Date: Thu, 11 Jun 2026 17:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=90=8E=E7=9A=84html?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 1 + 飞书审批配置文件_V1.0.html | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) 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;
- - - + + +
如您有疑问可联系TH818部门人员
@@ -4094,7 +4096,8 @@ function buildStandaloneHtml(config) { boot.textContent = [ 'window.APP_PROJECT = ' + JSON.stringify(window.APP_PROJECT || { id: 'approval_of_design', label: '飞书审批配置' }) + ';', "window.APP_MODE = 'standalone';", - 'window.__INITIAL_CONFIG__ = ' + JSON.stringify(config) + ';' + 'window.__INITIAL_CONFIG__ = ' + JSON.stringify(config) + ';', + "document.documentElement.setAttribute('data-app-mode', window.APP_MODE);" ].join('\n'); } return '\n' + clone.outerHTML; @@ -4126,7 +4129,7 @@ async function exportConfiguredHtml() { } catch (e) { alert('导出失败:' + (e.message || e)); } finally { - if (btn) { btn.disabled = false; btn.textContent = '保存并下载 HTML'; } + if (btn) { btn.disabled = false; btn.textContent = '导出 审批流设计文档'; } } }