소스 검색

Update index.tsx

lex-xin 4 달 전
부모
커밋
30a7fbcb2c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/fill-questionnaire/index.tsx

+ 2 - 1
src/views/fill-questionnaire/index.tsx

@@ -207,7 +207,8 @@ export default defineComponent({
     });
 
     // 如果没有openId,跳转到第一个页面
-    if (!authCode.onWeChatCatchOpenId("GET")) {
+    forms.openId = authCode.onWeChatCatchOpenId("GET");
+    if (!forms.openId) {
       router.push({
         path: '/intention-questionnaire',
         query: {