refactor: 移除旧版单文件管理后台兼容

This commit is contained in:
2026-07-15 07:46:30 +00:00
parent 4df439b5ce
commit 0b71e8d024
17 changed files with 16 additions and 2744 deletions
-3
View File
@@ -20,10 +20,7 @@ function applyAdminAuth(headers: Headers) {
const token = adminToken();
if (token) {
headers.set("Authorization", formatToken(token));
return;
}
const legacyToken = localStorage.getItem("admin_token") || "";
if (legacyToken) headers.set("X-Admin-Token", legacyToken);
}
export function friendlyError(error: unknown) {