mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
perf: optimize settingDrawer code
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
||||
enum Api {
|
||||
// 该地址不存在
|
||||
// The address does not exist
|
||||
Error = '/error',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 触发ajax错误
|
||||
* @description: Trigger ajax error
|
||||
*/
|
||||
export function fireErrorApi() {
|
||||
return defHttp.request({
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
/**
|
||||
* @description: 请求列表接口参数
|
||||
* @description: Request list interface parameters
|
||||
*/
|
||||
export type DemoParams = BasicPageParams;
|
||||
|
||||
@@ -15,6 +15,6 @@ export interface DemoListItem {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 请求列表返回值
|
||||
* @description: Request list return value
|
||||
*/
|
||||
export type DemoListGetResultModel = BasicFetchResult<DemoListItem>;
|
||||
|
@@ -6,7 +6,7 @@ enum Api {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取示例列表值
|
||||
* @description: Get sample list value
|
||||
*/
|
||||
export function demoListApi(params: DemoParams) {
|
||||
return defHttp.request<DemoListGetResultModel>({
|
||||
|
Reference in New Issue
Block a user