fea: 前端完成动态ip与动态mac的适配

This commit is contained in:
2025-07-17 21:18:59 +08:00
parent 0f4386457d
commit 80b6dfb38d
4 changed files with 372 additions and 175 deletions

View File

@@ -10,6 +10,7 @@ import {
TutorialClient,
UDPClient,
LogicAnalyzerClient,
NetConfigClient,
} from "@/APIClient";
// 支持的客户端类型联合类型
@@ -24,7 +25,8 @@ type SupportedClient =
| RemoteUpdateClient
| TutorialClient
| LogicAnalyzerClient
| UDPClient;
| UDPClient
| NetConfigClient;
export class AuthManager {
// 存储token到localStorage
@@ -156,6 +158,10 @@ export class AuthManager {
public static createAuthenticatedLogicAnalyzerClient(): LogicAnalyzerClient {
return AuthManager.createAuthenticatedClient(LogicAnalyzerClient);
}
public static createAuthenticatedNetConfigClient(): NetConfigClient {
return AuthManager.createAuthenticatedClient(NetConfigClient);
}
// 登录函数
public static async login(