problem description
vue-cli postpostman post?
vue-resource
the environmental background of the problems and what methods you have tried
postmanSLL
vue-cli
related codes
Vue.http.interceptors.push((request, next) => {
console.log(request)
var sessiontoken = sessionStorage.getItem("authorization")
request.headers.set("authorization", sessiontoken)
request.headers.set("platform", "V:1.0.0")
request.headers.set("Accept", "application/json")
request.headers.set("debug", "1")
next()
})
/ / var url= "https://"+this.dataIp+"/manager/user/getCode"
var a = this.$md5("mobile="+this.mobile+"type=3timestamp=1497255992614")
a = a.toUpperCase()
this.$http.post(
url,{
"mobile":this.mobile,
"type":3,
"timestamp":"1497255992614",
"sign":a
},{
"emulateJSON": true
}
).then(function(r){
alert("")
})
},
what result do you expect? What is the error message actually seen?