fix: 顶栏外链改为正式地址(gitea.88531.cn / nav.88531.cn)
This commit is contained in:
1 parent
9ed390830a
commit
dbbd545626
2 files changed
+8
-3
No files matched your search
@@ -1,5 +1,11 @@
|
||||
# 更新日志
|
||||
|
||||
## 2026-10-27 → 🔧 顶栏外链改用正式地址
|
||||
|
||||
- 🔧 开源地址默认改为 `https://gitea.88531.cn/jinghui/docker-center`,导航站默认改为 `https://nav.88531.cn`(原先是按当前主机的 Gitea/BestNav 端口推导)
|
||||
- 🔧 已写入 `data/settings.json` 的 `links`,安装到别的机器也直接指向这两个公网地址;仍可在告警设置页覆盖
|
||||
- ✅ 实测两个地址均返回 HTTP 200;顶栏按钮 href 与 `target=_blank` 正确,设置页回填一致
|
||||
|
||||
## 2026-10-27 → 🔧 修掉双滚动条 + 顶栏加「开源地址 / 导航站」
|
||||
|
||||
- 🔧 双滚动条:外层 `html,body` 改为 `overflow:hidden`、`.app` 由 `height:100vh` 改为 `height:100%`,滚动只由 `#view` 承担;实测 `innerWidth - clientWidth = 0`(外层无滚动条),页内仅 1 个滚动条
|
||||
|
||||
+2
-3
@@ -168,9 +168,8 @@ function go(view) {
|
||||
async function renderExtLinks() {
|
||||
const box = document.getElementById('extLinks');
|
||||
if (!box) return;
|
||||
const host = location.hostname || 'localhost';
|
||||
let repo = `http://${host}:3200/jinghui/docker-center`;
|
||||
let nav = `http://${host}:10788`;
|
||||
let repo = 'https://gitea.88531.cn/jinghui/docker-center';
|
||||
let nav = 'https://nav.88531.cn';
|
||||
try {
|
||||
const s = await api('/api/settings');
|
||||
if (s.links && s.links.repo) repo = s.links.repo;
|
||||
|
||||
Reference in new issue
Block a user