修复字典管理新增值时is_value错误的bug

This commit is contained in:
阿辉
2024-12-17 10:58:13 +08:00
parent a36dcfa1e5
commit 15c87ddd26
3 changed files with 313 additions and 303 deletions

View File

@@ -4,7 +4,7 @@ import { DictionaryStore } from '/@/stores/dictionary';
/**
* @method 获取指定name字典
*/
export const dictionary = (name: string,key:string|number|undefined) => {
export const dictionary = (name: string,key?:string|number|undefined) => {
const dict = DictionaryStore()
const dictionary = toRaw(dict.data)
if(key!=undefined){