Эх сурвалжийг харах

update Web/src/stores/userInfo.ts. 修复 根据字典类型和描述取值

Signed-off-by: LSluoshi <smallstar0621@outlook.com>
LSluoshi 1 жил өмнө
parent
commit
e430e65757

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

@@ -145,7 +145,7 @@ export const useUserInfo = defineStore('userInfo', {
 			const ds = this.getDictDatasByCode(typePCode);
 			for (let index = 0; index < ds.length; index++) {
 				const element = ds[index];
-				if (element.value == label) {
+				if (element.name == label) {
 					return element;
 				}
 			}