浏览代码

跳转微信小程序

hwb0 3 年之前
父节点
当前提交
fd8f15fca1
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      public/jump.html

+ 4 - 2
public/jump.html

@@ -106,8 +106,10 @@
 
       req.then(data => {
         console.log('data', data)
-        if(data.code == 0){
-          window.location.href = data.data;
+        let resData = JSON.parse(data)
+        console.log('resData', resData)
+        if(resData.code == 0){
+          window.location.href = resData.data;
         }
       })
     }