소스 검색

!1336 修复字典匹配错误
Merge pull request !1336 from IMaster/next

zuohuaijun 2 년 전
부모
커밋
b7ecc5229d
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Web/src/stores/userInfo.ts

+ 2 - 2
Web/src/stores/userInfo.ts

@@ -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;
 					}
 				}