feat: alovajs ts 加持
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user