Merge pull request '修正字典匹配' (#57) from orzsoft_admin/Admin.NET.Pro:template into main

Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/57
This commit is contained in:
zuohuaijun 2024-07-16 20:33:33 +08:00
commit 80745e5cb4

View File

@ -136,7 +136,7 @@ export const useUserInfo = defineStore('userInfo', {
const _val = val.toString();
const ds = this.getDictDatasByCode(typePCode);
for (const element of ds) {
if (element.value === _val) {
if (element.code === _val) {
return element;
}
}
@ -150,7 +150,7 @@ export const useUserInfo = defineStore('userInfo', {
const _val = val.toString();
const ds = this.getDictDatasByCode(typePCode);
for (const element of ds) {
if (element.code === _val) {
if (element.value === _val) {
return element;
}
}