Ver código fonte

跳转微信小程序

hwb0 3 anos atrás
pai
commit
92d637f6a5
1 arquivos alterados com 4 adições e 3 exclusões
  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;
+        }
       })
     }