mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-18 10:18:14 +08:00
♻️ types 重构后的问题搞完了,累死
This commit is contained in:
@@ -26,7 +26,7 @@ const abyssCookie = ref({
|
||||
ltoken: "",
|
||||
ltuid: "",
|
||||
});
|
||||
const user = ref({} as BTMuli.User.Game.Account);
|
||||
const user = ref({} as TGApp.User.Account.Game);
|
||||
|
||||
onMounted(async () => {
|
||||
const curUser = await TGSqlite.getCurAccount();
|
||||
@@ -44,7 +44,7 @@ onMounted(async () => {
|
||||
async function getAbyssData (schedule:string): Promise<void> {
|
||||
const res = await TGRequest.User.byCookie.getAbyss(abyssCookie.value, schedule, user.value);
|
||||
if (res.hasOwnProperty("retcode")) {
|
||||
const warn = res as BTMuli.Genshin.Base.Response;
|
||||
const warn = res as TGApp.BBS.Response.Base;
|
||||
console.warn(warn);
|
||||
} else {
|
||||
console.log(res);
|
||||
|
||||
Reference in New Issue
Block a user