Selaa lähdekoodia

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

Signed-off-by: LSluoshi <smallstar0621@outlook.com>
LSluoshi 1 vuosi sitten
vanhempi
commit
e430e65757
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
 				}
 			}