Browse Source

fix: 添加就诊人选择本人时,需要拉起授权

carver 2 years ago
parent
commit
e7a48c730c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      antbuilder/industry/hospitalV2/components/edit-patient/index.js

+ 4 - 1
antbuilder/industry/hospitalV2/components/edit-patient/index.js

@@ -138,7 +138,6 @@ Component(
 
 				if (id === 1) {
 					const { userInfo } = this.data; // 判断用户是否已经登陆
-
 					if (userInfo.isLogin) {
 						isAuthSuccess = true;
 					} else {
@@ -147,6 +146,10 @@ Component(
 						});
 					}
 
+					isAuthSuccess = await doLogin.call(this, {
+						scopes: "auth_user",
+					});
+
 					if (isAuthSuccess) {
 						const {
 							phone,