字典管理添加缓存读取

This commit is contained in:
RuoYi
2020-06-04 17:36:58 +08:00
parent d5dd5b6b7a
commit b0af4a1c04
12 changed files with 225 additions and 77 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 optionselect() {
return request({