diff --git a/Web/src/stores/userInfo.ts b/Web/src/stores/userInfo.ts index 39c74518..53190884 100644 --- a/Web/src/stores/userInfo.ts +++ b/Web/src/stores/userInfo.ts @@ -132,6 +132,7 @@ export const useUserInfo = defineStore('userInfo', { // 根据字典类型和代码取字典项 getDictItemByCode(typePCode: string, val: string) { + val = val.toString(); if (val) { const _val = val.toString(); const ds = this.getDictDatasByCode(typePCode);