提交 | 用户 | age | ||
710158 | 1 | import { defHttp } from '/@/utils/http/axios'; |
V | 2 | |
3 | enum Api { | |
4ff6b7 | 4 | // The address does not exist |
710158 | 5 | Error = '/error', |
V | 6 | } |
7 | ||
8 | /** | |
4ff6b7 | 9 | * @description: Trigger ajax error |
710158 | 10 | */ |
V | 11 | export function fireErrorApi() { |
12 | return defHttp.request({ | |
13 | url: Api.Error, | |
14 | method: 'GET', | |
15 | }); | |
16 | } |