Browse Source

Update index.tsx

lex-xin 4 tháng trước cách đây
mục cha
commit
30a7fbcb2c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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: {