mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-28 16:30:52 +08:00
feat: add rule page
This commit is contained in:
@@ -62,7 +62,8 @@ export async function updateConfigs(config: Partial<ApiType.ConfigData>) {
|
||||
/// Get current rules
|
||||
export async function getRules() {
|
||||
const instance = await getAxios();
|
||||
return instance.get("/rules") as Promise<ApiType.RuleItem[]>;
|
||||
const response = await instance.get<any, any>("/rules");
|
||||
return response?.rules as ApiType.RuleItem[];
|
||||
}
|
||||
|
||||
/// Get Proxy delay
|
||||
|
||||
Reference in New Issue
Block a user