feat: 封装一些函数,补充页面样式

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-25 15:42:48 +08:00
parent aa53691dc7
commit 7d1cc2da1a
18 changed files with 394 additions and 235 deletions
+3 -3
View File
@@ -51,14 +51,14 @@ export const newApiFetchRaw = async <T>(
path: string,
options?: FetchOptions
): Promise<INewApiRawResponse<T>> => {
const response = await $fetch.raw<T>(path, {
const res = await $fetch.raw<T>(path, {
baseURL: BASE_URL,
...options
});
return {
_data: response._data as T | undefined,
headers: response.headers
_data: res._data as T | undefined,
headers: res.headers
};
};