// API 请求封装
export const fetchData = async (url: string) => {
const response = await fetch(url);
return response.json();
};