li.shaoyi 3 rokov pred
rodič
commit
5b15a07d6f
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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),