精简搜索函数, 添加页面
This commit is contained in:
@@ -74,12 +74,12 @@ const request = (url: string, options: any, config = { showLoading: true, showEr
|
||||
};
|
||||
|
||||
// 封装get方法
|
||||
export const get = (url: string, data = {}, config?: any): any => {
|
||||
export const get = (url: string, data = {}, config?: any) => {
|
||||
return request(url, { method: 'GET', data }, config);
|
||||
};
|
||||
|
||||
// 封装post方法
|
||||
export const post = (url: string, data = {}, config?: any): any => {
|
||||
export const post = (url: string, data = {}, config?: any) => {
|
||||
return request(url, { method: 'POST', data }, config);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user