mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-28 16:30:52 +08:00
fix: restart clash should update something
This commit is contained in:
@@ -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