From 8683fcf37fc9505ad1924202be110120e2841fbc Mon Sep 17 00:00:00 2001 From: Joftal <42807405+Joftal@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:30:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(webapp):=20=E6=98=8E=E6=96=87=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E8=A1=A5=E4=B8=80=E6=9D=A1=E5=BF=AB=E7=85=A7?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 明文页展示的是打开那一刻的配置快照,而后台会在运行中续期各平台 Cookie。掩码字段 (如 Soop 密码)保存时始终沿用服务器上的最新原文,不受快照影响;Cookie 则是按 "这条与服务器当前值是否一致"判断用户有没有改过,拿着过期快照保存会把期间刚续好的 新值当成用户手写的旧改动顶回去。合并逻辑本身不改,只把风险与"刷新会覆盖未保存修改" 一并写在页面上。 --- src/webapp/src/component/config-info/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/webapp/src/component/config-info/index.tsx b/src/webapp/src/component/config-info/index.tsx index f51b9b6..9a2313a 100644 --- a/src/webapp/src/component/config-info/index.tsx +++ b/src/webapp/src/component/config-info/index.tsx @@ -2291,6 +2291,13 @@ const ConfigInfo: React.FC = () => { // YAML 模式内容 const renderYamlMode = () => (
+ setRawConfig(code)}