Browse Source

Update index.tsx

lex-xin 1 month ago
parent
commit
30a7fbcb2c
1 changed files with 2 additions and 1 deletions
  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: {