The official account made by vue

the interface can be accessed locally, but if I want to log in with code, I must go to the Wechat debugging tool to log in to Wechat entrance and take code to log in, but the this.getData (), console.log (12345677) in the tool does not come out. Cookie can be written into it. This is why. Ask for help, the console does not report wrong, there is no information, a blank, this is my home page, redirect is to this page

created() {
        this.getData();
        console.log(12345677);
        cookies.set("CXC_state","0");//0
       
    },
    methods: {
        getData(){
            let json = {}
            let _this = this;
            base.axios_type("get",json,"/user",function(res){
                if(res.code==1){
                    console.log(res);
                }else if(res.code==-1){
                     console.log(11111111111);
                    base.wx_logo();
                }
                
            });
        },
    }

base file

function wx_logo(){
  let url = location.hostname;
  let _this = this;
  if(url.indexOf("localhost")!=-1){
    location.href = window.location.href;
  }else{
      location.href =
        "https://open.weixin.qq.com/connect/oauth2/authorize?appid=***********8&redirect_uri=https%3a%2f%2&&&&&&&&&&&&response_type=code&scope=snsapi_userinfo&state=STATE-sharpwechat_redirect";
      let code = ssQueryValueByKey("code");
      logo(code);
   }
};
function logo(_code){
  let json = {code:_code}
  axios_type("get",json,"/getUserInfo",function(res){
  console.log(res.msg);
  res = JSON.parse(res);
  if (res.code == 1) {
      //
      console.log(res.data);
  } else if(res.code==-1){

  }else {
      console.log(res.message);
  }
  })
};
function axios_type(requestType,json, url, completion) {
  console.log(json);
  axios({
      method: requestType,
      url: "https://****.******8.com/api"+url,
      dataType: "jsonp",
      data: JSON.stringify(json),
      header:{
        "Content-Type":"application/json",
      }
    }).then(function (res) {
        console.log(res.data);
        completion(res.data);
    }).catch(function (error) {
        console.log(error);
    });
}
Mar.06,2021

console tag of chrome debugger, open the preserve log option


access the wrong server address,

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54619-452a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54619-452a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?