fix(panel): 版本徽标读取服务端构建信息并标出开发版,配置加载失败时显示提示条
This commit is contained in:
9 files changed
+287
-9
No files matched your search
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user