소스 검색

跳转微信小程序

hwb0 3 년 전
부모
커밋
92d637f6a5
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      public/jump.html

+ 4 - 3
public/jump.html

@@ -105,9 +105,10 @@
         }
       })
 
-      req.then(data => {
-        console.log(data)
-        location.href = data.data;
+      req.then(res => {
+        if(res.code == 0){
+          location.href = res.data;
+        }
       })
     }