feat: alovajs ts 加持

This commit is contained in:
feige996
2025-06-22 21:33:22 +08:00
parent 957519caac
commit 730d127c3a
2 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
// alovaJS 还在整理中有比较熟悉的开发者可以PR一下省得我去摸索
import { http } from '@/utils/request/alova'
export interface IFooItem {
id: string
name: string
}
export function foo() {
return http.Get('/foo', {
return http.Get<IFooItem>('/foo', {
params: {
name: '菲鸽',
page: 1,