@@ -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;
}
})