From 0d7af99a78e17d459d5d32e280f21a94cb55851d Mon Sep 17 00:00:00 2001 From: mrlee <470349233@qq.com> Date: Mon, 28 Sep 2026 16:44:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(cloudflare):=20=E7=BB=9F=E4=B8=80=E9=9A=A7?= =?UTF-8?q?=E9=81=93=E5=BC=B9=E7=AA=97=E5=AE=BD=E5=BA=A6=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E5=B8=83=20v1.6.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 14 ++++++++++++++ VERSION | 2 +- docs/README.md | 2 +- docs/system-upgrade.md | 8 ++++---- web/package-lock.json | 4 ++-- web/package.json | 2 +- web/src/views/CloudflareView.vue | 8 +++----- web/src/views/ExampleView.vue | 16 ++++++++-------- 8 files changed, 34 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdeb8aa..dbdf0da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ All notable changes to this project will be documented in this file. +## [v1.6.2] - 2026-09-28 + +### 修复 + +- **Cloudflare 隧道弹窗宽度**:`n-modal` 的宽度原先写在 scoped class 上,没有传到 naive-ui 的 modal 根节点,部分视口下弹窗被拉成 100%。现在改为与其他页面一致的 `:style` 写法:编辑弹窗 `min(720px, 96vw)`、详情弹窗 `min(760px, 96vw)`、二进制弹窗 `min(560px, 94vw)` + +### 变更 + +- 版本号提升到 1.6.2;`AgentVersion` 保持 **0.14.1** + +### 测试 + +- `npm run typecheck`、`npm run build` 通过 + ## [v1.6.1] - 2026-09-28 ### 修复 diff --git a/VERSION b/VERSION index 9c6d629..fdd3be6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.6.1 +1.6.2 diff --git a/docs/README.md b/docs/README.md index 7ae752f..57771f0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,7 +1,7 @@ # Fonu 文档索引 > 维护约定:新增方案 / 审查文档时在下方登记;方案落地后在「状态」列标注实施结果,并给已被推翻的描述加时效说明。 -> 最近更新:2026-09-28(v1.6.1) +> 最近更新:2026-09-28(v1.6.2) ## 方案与设计(本目录) diff --git a/docs/system-upgrade.md b/docs/system-upgrade.md index ad3a8aa..8096a69 100644 --- a/docs/system-upgrade.md +++ b/docs/system-upgrade.md @@ -238,16 +238,16 @@ FONU_VERSION=<旧版本> docker compose up -d --no-deps --force-recreate fonu ## 10. 在线升级验证 -示例页面用于验证升级结果。v1.6.1 的验证流程: +示例页面用于验证升级结果。v1.6.2 的验证流程: 1. 确认当前线上实例为 v1.3.0,且 `fonu-updater` sidecar 已运行。 -2. 确认远端 `main` 分支的 `VERSION` 为 `1.6.1`。 +2. 确认远端 `main` 分支的 `VERSION` 为 `1.6.2`。 3. 在侧栏看到「一键升级」后点击并确认。 4. 等待升级弹窗显示成功,页面自动刷新。 5. 打开侧栏「示例页面」,确认: - 页面路由为 `/example`; - - 页面显示的版本为 `1.6.1`; - - 页面显示验证标识 `v1.6.1-example-page`; + - 页面显示的版本为 `1.6.2`; + - 页面显示验证标识 `v1.6.2-example-page`; - 页面显示独立的「本次升级验证」区块; - 「升级验证」显示为「通过」。 diff --git a/web/package-lock.json b/web/package-lock.json index ea013ea..7154bf6 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,12 +1,12 @@ { "name": "fonu-web", - "version": "1.6.1", + "version": "1.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fonu-web", - "version": "1.6.1", + "version": "1.6.2", "dependencies": { "@codemirror/commands": "^6.11.1", "@codemirror/lang-javascript": "^6.2.5", diff --git a/web/package.json b/web/package.json index 3e455ff..128faa9 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "fonu-web", "private": true, - "version": "1.6.1", + "version": "1.6.2", "packageManager": "npm@10.9.4", "type": "module", "scripts": { diff --git a/web/src/views/CloudflareView.vue b/web/src/views/CloudflareView.vue index 8322f0b..9f78f73 100644 --- a/web/src/views/CloudflareView.vue +++ b/web/src/views/CloudflareView.vue @@ -37,7 +37,7 @@ - +
{{ modeHint }} @@ -79,7 +79,7 @@ - +
@@ -108,7 +108,7 @@ - +
{{ binaryVersion || '未安装' }}
@@ -414,8 +414,6 @@ useVisibilityPolling(refreshDetail, 3000, { enabled: detailVisible }) .cf-row__main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .cf-row__actions { display: flex; gap: 6px; flex-wrap: wrap; } .cf-meta { font-size: 12px; color: var(--fonu-text-secondary); } -.cf-modal { width: 720px; max-width: 94vw; } -.cf-modal--wide { width: 780px; } .cf-modal__body { max-height: 68vh; overflow: auto; padding-right: 4px; } .cf-modal__footer { display: flex; justify-content: flex-end; gap: 8px; } .cf-mode-alert { margin-bottom: 4px; } diff --git a/web/src/views/ExampleView.vue b/web/src/views/ExampleView.vue index 47f4d9f..be1bad4 100644 --- a/web/src/views/ExampleView.vue +++ b/web/src/views/ExampleView.vue @@ -8,7 +8,7 @@ - + 当前页面由 v{{ version }} 提供,验证标识为 {{ verificationMarker }}。 如果你是在升级后首次看到这行内容,说明前端构建、镜像重建和服务重启均已成功。 @@ -19,7 +19,7 @@ {{ verificationRound }}
- 看到这个新区块,说明前端资源已经从旧版本切换到 v1.6.1。 + 看到这个新区块,说明前端资源已经从旧版本切换到 v1.6.2。
@@ -33,16 +33,16 @@ - +
    -
  • 页面版本提示更新为 v1.6.1。
  • -
  • 「本次升级验证」区块和页面状态同步更新为 v1.6.1。
  • -
  • 验证标识更新为 v1.6.1-example-page。
  • +
  • 页面版本提示更新为 v1.6.2。
  • +
  • 「本次升级验证」区块和页面状态同步更新为 v1.6.2。
  • +
  • 验证标识更新为 v1.6.2-example-page。
@@ -87,8 +87,8 @@ const message = useMessage() const version = ref(__APP_VERSION__) const checkedAt = ref('') const refreshing = ref(false) -const verificationRound = 'v1.6.1' -const verificationMarker = 'v1.6.1-example-page' +const verificationRound = 'v1.6.2' +const verificationMarker = 'v1.6.2-example-page' async function refreshVersion() { refreshing.value = true