Преглед на файлове

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

Signed-off-by: LSluoshi <smallstar0621@outlook.com>
LSluoshi преди 2 години
родител
ревизия
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);
 			const ds = this.getDictDatasByCode(typePCode);
 			for (let index = 0; index < ds.length; index++) {
 			for (let index = 0; index < ds.length; index++) {
 				const element = ds[index];
 				const element = ds[index];
-				if (element.value == label) {
+				if (element.name == label) {
 					return element;
 					return element;
 				}
 				}
 			}
 			}