Blame view

Yi.Vben5.Vue3/playground/src/api/examples/params.ts 382 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  import type { Recordable } from '@vben/types';
  
  import { requestClient } from '#/api/request';
  
  /**
   * 发起数组请求
   */
  async function getParamsData(
    params: Recordable<any>,
    type: 'brackets' | 'comma' | 'indices' | 'repeat',
  ) {
    return requestClient.get('/status', {
      params,
      paramsSerializer: type,
      responseReturn: 'raw',
    });
  }
  
  export { getParamsData };