Blame view

src/api/demo/error.ts 226 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
 */
Vben authored
11
12
export const fireErrorApi = () => defHttp.get({ url: Api.Error });