mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit:1.5多应用版本
This commit is contained in:
@@ -42,6 +42,10 @@ class DictionaryBase extends Map {
|
||||
}
|
||||
|
||||
getValue (id, valueId = 'name') {
|
||||
// 如果id为boolean类型,则自动转换为0和1
|
||||
if (typeof id === 'boolean') {
|
||||
id = id ? 1 : 0;
|
||||
}
|
||||
return (this.get(id) || {})[valueId];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user