Parcourir la source

Update index.tsx

lex-xin il y a 1 mois
Parent
commit
30a7fbcb2c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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: {