Vben
2021-02-26 11d3f395caf7e2268630090eb34f4e5c114a96b7
src/api/demo/error.ts
@@ -1,7 +1,5 @@
import { defHttp } from '/@/utils/http/axios';
const { get } = defHttp;
enum Api {
  // The address does not exist
  Error = '/error',
@@ -11,4 +9,4 @@
 * @description: Trigger ajax error
 */
export const fireErrorApi = () => get({ url: Api.Error });
export const fireErrorApi = () => defHttp.get({ url: Api.Error });