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 });