Files
vue-vben-admin/src/api/demo/error.ts
2020-11-10 22:45:39 +08:00

17 lines
265 B
TypeScript

import { defHttp } from '/@/utils/http/axios';
enum Api {
// The address does not exist
Error = '/error',
}
/**
* @description: Trigger ajax error
*/
export function fireErrorApi() {
return defHttp.request({
url: Api.Error,
method: 'GET',
});
}