From 822ed91e2bc13ddd06a327c7c43281ebbaa05a4c Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Mon, 24 Mar 2025 10:39:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E8=A1=A5=E5=85=85=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=92=8Cmock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/dict.mock.ts | 21 +++++++++++++++++++++ src/api/system/dict.api.ts | 5 +++++ 2 files changed, 26 insertions(+) diff --git a/mock/dict.mock.ts b/mock/dict.mock.ts index 9eff20e7..b04a3689 100644 --- a/mock/dict.mock.ts +++ b/mock/dict.mock.ts @@ -21,6 +21,27 @@ export default defineMock([ }, }, + /** + * 字典列表 + */ + { + url: "dicts", + method: ["GET"], + body: { + code: "00000", + data: { + list: [ + { + value: "gender", + label: "性别", + }, + ], + total: 1, + }, + msg: "一切ok", + }, + }, + // 新增字典 { url: "dicts", diff --git a/src/api/system/dict.api.ts b/src/api/system/dict.api.ts index f558a987..755ff062 100644 --- a/src/api/system/dict.api.ts +++ b/src/api/system/dict.api.ts @@ -21,6 +21,11 @@ const DictAPI = { }); }, + /** + * 字典列表 + * + * @returns 字典列表 + */ getList() { return request({ url: `${DICT_BASE_URL}`,