Home > front end >  Element vue login to consult
Element vue login to consult

Time:09-17

What do you want to be a backend login interface, backend interface is implemented, cross-domain also set the
Postman backend validation can be login

But not a element with vue login admin corresponding,

CodePudding user response:

Two solutions
1. The front end request is put inside address account password, just like you use the postman? The username=* * * & amp; Password=* * *
2. After receiving and read the location of the modified don't read? At the back of the data but the inside of the body

CodePudding user response:

Are you sure you. Env BASE_API this variable in the file

CodePudding user response:


@ cn00439805

CodePudding user response:

Your request to write their own is the json format postman is FormData backend can take to the value in the form of a ghost

CodePudding user response:

Such as your interface: http://www.baidu.com/api/getUserList
That is about to set VUE_APP_BASE_API='/API'

CodePudding user response:

Your target is wrong, should be
Target: ` http://localhost:9527 `,
  • Related