Blame view

src/api/demo/error.ts 265 Bytes
vben authored
1
2
3
import { defHttp } from '/@/utils/http/axios';

enum Api {
4
  // The address does not exist
vben authored
5
6
7
8
  Error = '/error',
}

/**
9
 * @description: Trigger ajax error
vben authored
10
11
12
13
14
15
16
 */
export function fireErrorApi() {
  return defHttp.request({
    url: Api.Error,
    method: 'GET',
  });
}