fix: 🐛 补充字典列表接口和mock
This commit is contained in:
@@ -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",
|
url: "dicts",
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ const DictAPI = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典列表
|
||||||
|
*
|
||||||
|
* @returns 字典列表
|
||||||
|
*/
|
||||||
getList() {
|
getList() {
|
||||||
return request<any, OptionType[]>({
|
return request<any, OptionType[]>({
|
||||||
url: `${DICT_BASE_URL}`,
|
url: `${DICT_BASE_URL}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user