|
@@ -7,5 +7,8 @@ import { DictionaryStore } from '/@/stores/dictionary';
|
|
|
export const dictionary = (name: string) => {
|
|
|
const dict = DictionaryStore()
|
|
|
const dictionary = toRaw(dict.data)
|
|
|
+ if (!dictionary || Object.keys(dictionary).length === 0) {
|
|
|
+ DictionaryStore().getSystemDictionarys()
|
|
|
+ }
|
|
|
return dictionary[name]
|
|
|
}
|