mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-17 07:40:34 +08:00
feat: 提交非国际化版本代码
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
## 用法
|
||||
|
||||
### Get 请求
|
||||
|
||||
```
|
||||
import { http } from "@/utils/http";
|
||||
|
||||
// params传参
|
||||
http.request('get', '/xxx', { params: param });
|
||||
|
||||
// url拼接传参
|
||||
http.request('get', '/xxx?message=' + msg);
|
||||
```
|
||||
|
||||
### Post 请求
|
||||
|
||||
```
|
||||
import { http } from "@/utils/http";
|
||||
|
||||
// params传参
|
||||
http.request('post', '/xxx', { params: param });
|
||||
|
||||
// data传参
|
||||
http.request('post', '/xxx', { data: param });
|
||||
```
|
||||
Reference in New Issue
Block a user