修复 v2.7.1 版本,在build时报找不到error.ts的问题

This commit is contained in:
muguilin 2021-09-07 14:54:59 +08:00
parent 2a790d24bf
commit 759bfc1f77

12
src/api/demo/error.ts Normal file
View File

@ -0,0 +1,12 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
// The address does not exist
Error = '/error',
}
/**
* @description: Trigger ajax error
*/
export const fireErrorApi = () => defHttp.get({ url: Api.Error });