feat: 使用 http.get 替代 httpGet

This commit is contained in:
菲鸽
2024-05-04 23:29:21 +08:00
parent 7beb03a89e
commit cc53167750
2 changed files with 10 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ export const http = <T>(options: CustomRequestOptions) => {
})
})
}
/**
* GET 请求
* @param url 后台地址
@@ -74,3 +75,6 @@ export const httpPost = <T>(
method: 'POST',
})
}
http.get = httpGet
http.post = httpPost