fix(panel): 版本徽标读取服务端构建信息并标出开发版,配置加载失败时显示提示条

This commit is contained in:
Lemon-miaow committed 2026-09-25 11:14:21 +08:00
1 parent 34ea733775
commit 1a8cccf245
9 files changed
+287 -9

No files matched your search

+5 -1
View File
@@ -2176,7 +2176,11 @@ export function mockApiPlugin(): Plugin {
const parts = url.pathname.split("/").filter(Boolean);
if (method === "GET" && url.pathname === "/config.json") {
sendJSON(res, 200, { apiBase: API_BASE, rootDomain: ROOT_DOMAIN });
sendJSON(res, 200, {
apiBase: API_BASE,
rootDomain: ROOT_DOMAIN,
build: { version: "v0.4.0+g1a2b3c4", release: "v0.4.0", commit: "1a2b3c4", dev: true },
});
return;
}
if (parts[0] !== "api" || parts[1] !== "v1") {