li.shaoyi 3 lat temu
rodzic
commit
5b15a07d6f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/services/go/index.ts

+ 1 - 1
src/services/go/index.ts

@@ -8,7 +8,7 @@ import { Method } from 'axios';
  * @param method 请求方式
  * @returns
  */
-export function commonSearch_go(url: string, params: Object, method: Method = 'get'): Promise<any> {
+export function commonSearch_go<T>(url: string, params: T, method: Method = 'get'): Promise<any> {
     return request({
         method,
         url: goCommonSearchUrl(url),