Revert "refactor: use axios tauri adapter"

This reverts commit 7e361cb3f1.
This commit is contained in:
MystiPanda
2024-05-26 21:18:02 +08:00
parent 4108451ebe
commit 8bc7607783
4 changed files with 0 additions and 70 deletions

View File

@@ -1,4 +1,3 @@
import axiosTauriApiAdapter from "axios-tauri-api-adapter";
import axios, { AxiosInstance } from "axios";
import { getClashInfo } from "./cmds";
@@ -26,7 +25,6 @@ export const getAxios = async (force: boolean = false) => {
} catch {}
axiosIns = axios.create({
adapter: axiosTauriApiAdapter,
baseURL: `http://${server}`,
headers: secret ? { Authorization: `Bearer ${secret}` } : {},
timeout: 15000,