Przeglądaj źródła

update Web/src/stores/userInfo.ts. 修复 根据字典类型和代码取字典项

Signed-off-by: LSluoshi <smallstar0621@outlook.com>
LSluoshi 1 rok temu
rodzic
commit
f40babf626
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      Web/src/stores/userInfo.ts

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

@@ -119,8 +119,8 @@ export const useUserInfo = defineStore('userInfo', {
 			});
 		},
 
-		// 根据字典类型和取字典项
-		getDictItemByVal(typePCode: string, val: string) {
+		// 根据字典类型和代码取字典项
+		getDictItemByCode(typePCode: string, val: string) {
 			if (val) {
 				const _val = val.toString();
 				const ds = this.getDictDatasByCode(typePCode);