feat: There is no way the, weblink 免登陆

This commit is contained in:
super_liu
2022-06-08 16:37:20 +08:00
parent fce741acfc
commit 3caaa0fa93
+2 -3
View File
@@ -100,7 +100,6 @@
computed: { computed: {
}, },
mounted () { mounted () {
debugger
HWH5.getAuthCode().then(data => { HWH5.getAuthCode().then(data => {
console.log(data) console.log(data)
if(data){ if(data){
@@ -117,13 +116,13 @@
if(res.data){ if(res.data){
axios.request({ axios.request({
url: 'https://iftappwelink.foton.com.cn/devserver/welink/getUserInfoByAuthCode?code='+code, url: 'https://iftappwelink.foton.com.cn/devserver/welink/getUserInfoByAuthCode?code='+code,
method: 'post', method: 'get',
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
}).then(res => { }).then(res => {
if(res.data){ if(res.data){
let userName = res.data.access_token; let userName = res.data.username;
if(userName !== undefined && userName !== ""){ if(userName !== undefined && userName !== ""){
checkPageNoEncryption({ checkPageNoEncryption({
username: userName username: userName