mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 16:48:32 +08:00
fix: restart clash should update something
This commit is contained in:
1 parent
2577cbe1ac
commit
62ff1421e7
3 files changed
+18
-3
No files matched your search
+3
-2
@@ -7,8 +7,9 @@ let server = "";
|
||||
let secret = "";
|
||||
|
||||
/// initialize some infomation
|
||||
export async function getAxios() {
|
||||
if (axiosIns) return axiosIns;
|
||||
/// enable force update axiosIns
|
||||
export async function getAxios(force: boolean = false) {
|
||||
if (axiosIns && !force) return axiosIns;
|
||||
|
||||
try {
|
||||
const info = await getClashInfo();
|
||||
|
||||
Reference in new issue
Block a user