2020-10-18 21:55:21 +08:00
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
|
|
|
|
|
|
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
|
|
|
*/
|
|
|
|
|
export function fireErrorApi() {
|
|
|
|
|
return defHttp.request({
|
|
|
|
|
url: Api.Error,
|
|
|
|
|
method: 'GET',
|
|
|
|
|
});
|
|
|
|
|
}
|