feat:增加信息完善性校验

This commit is contained in:
Jafeng 2026-02-08 13:47:47 +08:00
parent 18eac05df9
commit f552ad2b4e

View File

@ -226,7 +226,8 @@ function getTeamId() {
function hasCompleteUserInfo() { function hasCompleteUserInfo() {
const userId = getUserId(); const userId = getUserId();
const corpId = String(account.value?.corpId || doctorInfo.value?.corpId || '') || ''; const corpId = String(account.value?.corpId || doctorInfo.value?.corpId || '') || '';
return Boolean(corpId && userId); const anotherName = String(doctorInfo.value?.anotherName || '').trim();
return Boolean(corpId && userId && anotherName);
} }
function ensureUserInfoForFeature() { function ensureUserInfoForFeature() {