From 11d3f395caf7e2268630090eb34f4e5c114a96b7 Mon Sep 17 00:00:00 2001
From: Vben <anncwb@126.com>
Date: 星期五, 26 二月 2021 23:30:22 +0800
Subject: [PATCH] fix: ensure to request the interface correctly

---
 src/api/demo/error.ts |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/api/demo/error.ts b/src/api/demo/error.ts
index 14d8e2a..3ce6072 100644
--- a/src/api/demo/error.ts
+++ b/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 });

--
Gitblit v1.8.0