feat:增加信息完善性校验
This commit is contained in:
parent
18eac05df9
commit
f552ad2b4e
@ -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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user