字典管理添加缓存读取

This commit is contained in:
RuoYi
2020-05-30 14:29:19 +08:00
parent 0d546e4ba4
commit 1e2058bdfb
13 changed files with 230 additions and 71 deletions

View File

@ -20,7 +20,7 @@ export function getData(dictCode) {
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
return request({
url: '/system/dict/data/dictType/' + dictType,
url: '/system/dict/data/type/' + dictType,
method: 'get'
})
}

View File

@ -43,6 +43,14 @@ export function delType(dictId) {
})
}
// 清理参数缓存
export function clearCache() {
return request({
url: '/system/dict/type/clearCache',
method: 'delete'
})
}
// 导出字典类型
export function exportType(query) {
return request({