为resourceListAPi添加类型声明
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import fetcher from "@/lib/api/fetcher";
|
||||
import { Resource } from "@/lib/types/resource";
|
||||
|
||||
export async function list() {
|
||||
return fetcher('/admin/web/resource')
|
||||
return fetcher<Resource[]>('/admin/web/resource')
|
||||
}
|
||||
Reference in New Issue
Block a user