瀏覽代碼

chore(http): comment: 添加类似axios的API调用支持

feige996 7 月之前
父節點
當前提交
7663dba25e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/http/http.ts

+ 1 - 0
src/http/http.ts

@@ -175,6 +175,7 @@ export function httpDelete<T>(url: string, query?: Record<string, any>, header?:
   })
 }
 
+// 支持与 axios 类似的API调用
 http.get = httpGet
 http.post = httpPost
 http.put = httpPut