✏️ 继续修正 import

This commit is contained in:
目棃
2024-06-26 22:28:05 +08:00
parent f2e4186042
commit 0061dfa988
44 changed files with 198 additions and 230 deletions

View File

@@ -5,8 +5,9 @@
*/
import { http } from "@tauri-apps/api";
import { Response } from "@tauri-apps/api/http";
import HutaoApi from "../api";
import HutaoApi from "../api/index.js";
/**
* @description 获取角色上场率数据
@@ -16,10 +17,8 @@ import HutaoApi from "../api";
async function getAvatarUpRate(): Promise<TGApp.Plugins.Hutao.Abyss.AvatarUp[]> {
const url = HutaoApi.Abyss.avatar.upRate;
return await http
.fetch<TGApp.Plugins.Hutao.Abyss.AvatarUpResponse>(url, {
method: "GET",
})
.then((res) => {
.fetch(url, { method: "GET" })
.then((res: Response<TGApp.Plugins.Hutao.Abyss.AvatarUpResponse>) => {
return res.data.data;
});
}