增加字典全局权限

This commit is contained in:
2025-11-11 20:25:32 +08:00
parent 8c5859bad5
commit ad4cc5408d
7 changed files with 109 additions and 23 deletions
+8 -2
View File
@@ -22,7 +22,10 @@ export function addDictType(data) {
return request({
url: '/api/dict/types',
method: 'post',
data
data: {
...data,
is_global: data.is_global !== undefined ? data.is_global : 0
}
})
}
@@ -31,7 +34,10 @@ export function updateDictType(id, data) {
return request({
url: `/api/dict/types/${id}`,
method: 'put',
data
data: {
...data,
is_global: data.is_global !== undefined ? data.is_global : 0
}
})
}