Home > front end >  How native js or jquery in a vue. Js building simulation automatically submit on a page
How native js or jquery in a vue. Js building simulation automatically submit on a page

Time:10-23

The customer to request is in our page, use the existing user name password to log on to the target system automatically.

We joined a iframe in the jump page, point to the target system login page address.
There is no design cross-domain problem, because, our project with the target system is under the same big server.
The target system of the login page is a vue. Made of js page.
I, in the parent page directly through the dom manipulation, set the user name password input value attribute of the input box, but the target system prompts for is empty. A variety of ways attempt failed.
I later in the parent page references the vue. Js, intends to use vue to solve the problem of assignment.
Then set the first v - model
Usernameobj. Attr (' v - model ', 'username');
Passwordobj. Attr (' v - model 'and' password ');
Then execute
New Vue ({
El: '# app,
Data: {
Username: the username,
Password: password
}
});
The assignment successfully now. But can't click the login button.

Please god, help me this small white to vue completely don't understand, solve the assignment and the problem of automatic login.

CodePudding user response:

Why not consider with domain name token value Shared inside the cookies
  • Related