Merge pull request '更新 Web/src/stores/userInfo.ts' (#43) from 362270511/Admin.NET.Pro:main into main

Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/43
This commit is contained in:
zuohuaijun 2024-07-12 00:18:37 +08:00
commit 6614392375

View File

@ -132,6 +132,8 @@ export const useUserInfo = defineStore('userInfo', {
// 根据字典类型和代码取字典项
getDictItemByCode(typePCode: string, val: string) {
if(val!=undefined)
{
val = val.toString();
if (val) {
const _val = val.toString();
@ -143,6 +145,7 @@ export const useUserInfo = defineStore('userInfo', {
}
}
}
}
return {};
},