This commit is contained in:
2026-05-28 13:16:24 +08:00
parent 6f07c8bc15
commit b539cdb42f
34 changed files with 1118 additions and 779 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
import type { AxiosInstance, AxiosResponse } from "axios";
import axios from "axios";
import { h } from "vue";
import { ungzip } from "pako";
import { useInfoStore } from "@/stores";
// import { useDialog } from '@/components/hooks/dialog'
@@ -20,7 +19,7 @@ let baseURL = "/api";
// 避免远程开发的时候冲突
if (import.meta.env.MODE == "development") {
baseURL = "http://127.0.0.1:47173/api";
baseURL = "/api";
}
if (import.meta.env.MODE == "web" || import.meta.env.MODE == "show") {
@@ -105,7 +104,7 @@ export function defineRequest<T>(fn: (ax: AxiosInstance) => T) {
try {
const data = unzip(atob(response.data.data as string));
response.data.data = JSON.parse(data);
} catch (e) {}
} catch {}
}
return response.data;
},
+2 -2
View File
@@ -173,10 +173,10 @@ export interface ISkillInfo {
maxLevel: number;
requiredLevel: number;
requiredLevelRange: number;
preRequiredSkill: any;
preRequiredSkill: unknown;
jobId: string;
jobName: string;
jobGrowLevel: any[];
jobGrowLevel: unknown[];
evolution: Evolution[];
enhancement: Enhancement[];
attribute: Attribute;
+5 -5
View File
@@ -1,6 +1,6 @@
export interface IDataType<T = any> {
code?: number
message: string
data: T
state?: number
export interface IDataType<T = unknown> {
code?: number;
message: string;
data: T;
state?: number;
}