😎修复获取字典项类型错误

This commit is contained in:
zuohuaijun 2024-07-08 18:29:26 +08:00
parent d2db39a358
commit 020b10b34b

View File

@ -132,6 +132,7 @@ export const useUserInfo = defineStore('userInfo', {
// 根据字典类型和代码取字典项
getDictItemByCode(typePCode: string, val: string) {
val = val.toString();
if (val) {
const _val = val.toString();
const ds = this.getDictDatasByCode(typePCode);