Просмотр исходного кода

Merge branch 'next' of https://gitee.com/zuohuaijun/Admin.NET into next

zuohuaijun 1 год назад
Родитель
Сommit
b110da9a0a
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      Web/package.json
  2. 2 2
      Web/src/stores/userInfo.ts

+ 2 - 2
Web/package.json

@@ -73,8 +73,8 @@
 		"@types/node": "^20.14.10",
 		"@types/nprogress": "^0.2.3",
 		"@types/sortablejs": "^1.15.8",
-		"@typescript-eslint/eslint-plugin": "^7.16.0",
-		"@typescript-eslint/parser": "^7.16.0",
+		"@typescript-eslint/eslint-plugin": "^7.16.1",
+		"@typescript-eslint/parser": "^7.16.1",
 		"@vitejs/plugin-vue": "^5.0.5",
 		"@vitejs/plugin-vue-jsx": "^4.0.0",
 		"@vue/compiler-sfc": "^3.4.31",

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