Update token handling and request logging

This commit is contained in:
wangqiao
2025-08-26 14:22:02 +08:00
parent 5a2be1bc3b
commit e021ac1e05
3 changed files with 7 additions and 5 deletions

View File

@ -39,6 +39,9 @@ const useServerRequest = async <T>(
);
},
};
console.log(url + '-----' + 'defaultOptions----', defaultOptions);
console.log(url + '-----' + 'opts----', opts);
// return useFetch<T>(url, { ...defaultOptions, ...opts } as any);
// 明确转换返回类型
const response = await useFetch<T>(url, { ...defaultOptions, ...opts } as any);