2020-10-18 21:55:21 +08:00
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
|
|
2021-02-26 22:45:36 +08:00
|
|
|
const { get } = defHttp;
|
|
|
|
|
|
2020-10-18 21:55:21 +08:00
|
|
|
enum Api {
|
2020-11-10 22:45:39 +08:00
|
|
|
// The address does not exist
|
2020-10-18 21:55:21 +08:00
|
|
|
Error = '/error',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2020-11-10 22:45:39 +08:00
|
|
|
* @description: Trigger ajax error
|
2020-10-18 21:55:21 +08:00
|
|
|
*/
|
2021-02-26 22:45:36 +08:00
|
|
|
|
|
|
|
|
export const fireErrorApi = () => get({ url: Api.Error });
|