I don"t want to write an extra dialog,. I want to use the wheel built by elementUI. If I can"t satisfy it, I have to write it myself
.I can play one messageBox, at a time now, but I don"t know how to play dialog with two input boxes
// request interceptor
service.interceptors.request.use(config => {
MessageBox("", "", {
confirmButtonText: ""
})
// Do something before request is sent
if (getToken()) {
config.headers["token"] = getToken()
} else {
console.log("token")
}
return config
}, error => {
// Do something with request error
console.log(error) // for debug
Promise.reject(error)
})