Browse Source

跳转微信小程序

hwb0 3 năm trước cách đây
mục cha
commit
92d637f6a5
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  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;
+        }
       })
     }