feat(修改ico,logo,菜单管理crud基本功能完成): 🐛 修复登录未使用MD5
This commit is contained in:
11
web/src/utils/dictionary.ts
Normal file
11
web/src/utils/dictionary.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { toRaw } from 'vue';
|
||||
import { DictionaryStore } from '/@/stores/dictionary';
|
||||
|
||||
/**
|
||||
* @method 获取指定name字典
|
||||
*/
|
||||
export const dictionary = (name: string) => {
|
||||
const dict = DictionaryStore()
|
||||
const dictionary = toRaw(dict.data)
|
||||
return dictionary[name]
|
||||
}
|
||||
Reference in New Issue
Block a user