1
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user