Преглед изворни кода

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

Signed-off-by: LSluoshi <smallstar0621@outlook.com>
LSluoshi пре 1 година
родитељ
комит
e430e65757
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Web/src/stores/userInfo.ts

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