mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-02 18:08:40 +08:00
修复 v2.7.1 版本,在build时报找不到error.ts的问题
This commit is contained in:
parent
2a790d24bf
commit
759bfc1f77
12
src/api/demo/error.ts
Normal file
12
src/api/demo/error.ts
Normal 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 });
|
Loading…
Reference in New Issue
Block a user