Sfoglia il codice sorgente

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

feige996 7 mesi fa
parent
commit
7663dba25e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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