Browse Source

跳转微信小程序

hwb0 3 years ago
parent
commit
92d637f6a5
1 changed files with 4 additions and 3 deletions
  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;
+        }
       })
     }