Support upgrade alpha core

This commit is contained in:
MystiPanda
2023-12-10 15:57:10 +08:00
parent a66e8dfc9f
commit 0c3f03680c
6 changed files with 35 additions and 10 deletions

View File

@@ -61,6 +61,12 @@ export const updateGeoData = async () => {
return instance.post("/configs/geo");
};
/// Upgrade clash core
export const upgradeCore = async () => {
const instance = await getAxios();
return instance.post("/upgrade");
};
/// Get current rules
export const getRules = async () => {
const instance = await getAxios();