-
The problem of failed verification by using graphic CAPTCHA when registering in vue
use axios for registration, use graphic verification code to verify whether it is correct, cannot be verified correctly, 1. Get the graphic verification code first
this.$http({
method: get ,
url: this.api + app platform getImgCo...
-
On the problem that axios cannot bring cookie when making cross-domain requests under vue
I know that there are a lot of questions on the Internet, and I have tried a lot of methods, but I still can t find out what the problem is.
1. In vue, when a cross-domain request is made through axios, the cookie returned by the server cannot be set...
-
How to solve the compatibility of axios URLSearchParams IE and Edge browsers
when using axios to interact with the background, sometimes the background cannot receive the value, or the data received is not in the correct format. I use URLSearchParams to process the parameters
var params = new URLSearchParams();
params....
-
Vue.js- used proxyTable to forward request to access Douban API,504 error
vue project, there is a cross-domain problem in accessing Douban s API, using axios. Referring to the method on the Internet, the following configuration is added to the dev of config index.js
proxyTable: {
api : {
target: http: a...
-
Vue axios request to automatically bring the current domain name?
ask for answers from all kinds of gods
...
-
How does the data requested by axios render to the page through data?
data(){
return{
abc:[]
}
}
data request:
created() {
axios
.get("http: goods")
.then(response => {
this.abc = (JSON.parse(response.data));
})
.catch(error => {
console.log(...
-
Vue axios configuration axios interceptor does not work
is there a problem with neither 504 nor 500 as shown in the following code?
error error
how can I get the status code of error?
...
-
Can axios configure public params?
if the question belongs to I have three fields that must be added to all requests and must be placed in params now what I want to ask is does axios have a way to configure these three fields as common parameters Thank you all for answering first....
-
Excuse me: how to access multiple server addresses in the vue-cli project? Using axios
1. In the company project, two servers are deployed, one for storing data (the other server A), is used to do something similar to an evaluation system (server B);). The problem now is how to configure axios to access the contents of the two servers. ...
-
Request header when submitting axios to submit data
I reported a 419 error when using axios.post. there is an API at the backend to get the CSRF token (X-CSRF-TOKEN) you can only submit data if you add this to the request header. however, I checked the axios and Baidu, and customized the configuration...
-
The front-end Vue.js displays 404 cannot post? with axios submission
ask for help. I use the front end written by vue, and the back end written by nodejs now wants to submit the file from the front end by clicking click and passing it to the back end for analysis. The problem now is that the folder set by my back end to ...
-
Axios get request parameter problem
axios turns out that there are too many requests? params=. and you can request data by using axios.get directly. What is the reason for this? is it because I am blocking the problem?
...
-
Axios failed to request to add header information?
axios, is used in the project, but the header information needs to be modified, although the global method in the document is used, as follows
axios.defaults.headers.post [ "Content-Type "] = "application x-www-form-urlencoded "; Content-Type appli...
-
Does the axios interceptor return 200 have to enter the then method?
I check whether the 403 status is returned in the interceptor, and if so, jump to the login page instance.interceptors.response.use (function (response) { if (response.data.status = = 200) {.
return response.data;
} else if (response.data.status = ...
-
How should the configuration of axios in the nuxt.js project be written?
I put the configuration file of axios in plugins axios.js with the following code:
import axios from axios
import qs from qs
const hotName = location.hostname
if (hotName === localhost ) {
axios.defaults.baseURL = ` xxxx.com api`
axios...
-
Vue-axios request interface failed
this.axios.post( help liushui ).then((response) => {
console.log(response)
}).catch((response) => {
console.log(response)
})
there is a mistake in this request config index.js
proxyTable: {
apidomain : {
target: ...
-
Element change problem
< el-dialog: title= "type== role ? set roles : set permissions ": visible.sync= "grantShow ": width= "dialogWidth " > < el-form: model= "user ": rules= "$rules.user " ref= "userForm " > < el-form-item: label= "$t ( pages.user.app ) "...
-
After a vue axios request, loading a picture using request will occur, the page will be refreshed, and an error will be reported.
response.data is a picture url
...
-
Axios downloads pictures across domains
use axios in vue projects to get file streams across domains. No matter how I set responseType, it always returns string
e
ask for advice on how to solve the problem
...
-
After axios creates an instance, the put request cannot carry the set request header.
after creating the axios instance code, the post,put, is set and the common request header application x-www-form-urlencoded;charset=UTF-8. is set. The request using post carries a custom-set request header, but after using put, the request does not car...