浏览代码

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,跳转到第一个页面
     // 如果没有openId,跳转到第一个页面
-    if (!authCode.onWeChatCatchOpenId("GET")) {
+    forms.openId = authCode.onWeChatCatchOpenId("GET");
+    if (!forms.openId) {
       router.push({
       router.push({
         path: '/intention-questionnaire',
         path: '/intention-questionnaire',
         query: {
         query: {