feat: front-end use RunningMode enum instead of string literals

This commit is contained in:
Tunglies
2025-03-26 22:10:42 +08:00
parent 7ede91599c
commit 7280635741
5 changed files with 10 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ export const ProxyTunCard: FC = () => {
const { enable_system_proxy, enable_tun_mode } = verge ?? {};
// 是否以sidecar模式运行
const isSidecarMode = runningMode === "Sidecar";
const isSidecarMode = runningMode === RunningMode.Sidecar;
// 处理错误
const handleError = (err: Error) => {