😎修复获取字典错误
This commit is contained in:
parent
4f6fc8da4e
commit
755f7d4e78
@ -150,6 +150,8 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
|
||||
// 根据字典类型和值取描述
|
||||
getDictLabelByVal(typePCode: string, val: string) {
|
||||
if (val != undefined) {
|
||||
val = val.toString();
|
||||
if (val) {
|
||||
const _val = val.toString();
|
||||
const ds = this.getDictDatasByCode(typePCode);
|
||||
@ -160,6 +162,7 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return {};
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user