feat(窗口标签): 空标签统一显示“新标签”
build.yaml / build (push) Successful in 1m0s

This commit is contained in:
xiaoqidun committed 2026-10-25 13:08:40 +08:00
1 parent c4345420d5
commit b875b885f1
1 file changed
+1 -1
+1 -1
View File
@@ -2609,7 +2609,7 @@ function renderDocumentTabs() {
item.draggable = true;
const name = document.createElement("span");
name.className = "document-tab-name";
const title = tab.state.doc || tab.opening || tab.error ? tab.state.fileName : "OFDGo";
const title = tab.state.doc || tab.opening || tab.error ? tab.state.fileName : "新标签";
name.textContent = `${tab.state.dirty ? "● " : ""}${title}`;
item.title = `${title}${tab.opening ? ` · ${STATUS.opening}` : tab.state.saving ? " · 正在保存" : tab.error ? ` · ${tab.error}` : ""}`;
item.dataset.loading = String(Boolean(tab.opening));