feat:对接首页字典接口
This commit is contained in:
13
Yi.Bbs.Vue3/src/apis/dictionaryApi.js
Normal file
13
Yi.Bbs.Vue3/src/apis/dictionaryApi.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import request from "@/config/axios/service";
|
||||
|
||||
/**
|
||||
* 根据字典类型获取字典列表
|
||||
* @param {*} dicType 字典类型
|
||||
* @returns
|
||||
*/
|
||||
export function getDictionaryList(dicType) {
|
||||
return request({
|
||||
url: `/dictionary/dic-type/${dicType}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user