error.ts 255 B

12345678910111213141516
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. // 该地址不存在
  4. Error = '/error',
  5. }
  6. /**
  7. * @description: 触发ajax错误
  8. */
  9. export function fireErrorApi() {
  10. return defHttp.request({
  11. url: Api.Error,
  12. method: 'GET',
  13. });
  14. }