optimized port settings and added one-click random API port and key/separate refresh button

This commit is contained in:
Ahao
2025-05-20 18:49:16 +08:00
parent 5983ac5449
commit 7cd1816866
7 changed files with 529 additions and 349 deletions

View File

@@ -67,13 +67,13 @@ export const WebUIViewer = forwardRef<DialogRef>((props, ref) => {
url = url.replaceAll("%port", port || "9097");
url = url.replaceAll(
"%secret",
encodeURIComponent(clashInfo.secret || "")
encodeURIComponent(clashInfo.secret || ""),
);
}
await openWebUrl(url);
} catch (e: any) {
showNotice('error', e.message || e.toString());
showNotice("error", e.message || e.toString());
}
});