3. login / logout function

Login Overview

1. Log in Business Process
① In the login page to enter a user name and password
② call back to verify the interface
after ③ verified, go to the project page based on the response status of background
2. The relevant technical sign business

  • http is stateless
  • By recording the state of the client-side cookie
  • In the recording state through the session server side
  • Maintaining the status token way

Description: vue are doing this project to run a new port number, the server may exist between the cross-domain issues and projects in the front vue,
if there is no cross-domain problems between front-end and back-end interface, it is recommended that you use the session cookie and to Log record state,
on the contrary, if there is cross-domain problems between front-end and server, you need to use the token way to maintain login state.

Login --token Principle Analysis

Log in functions to achieve

1. Log in page layout is
achieved by Element-UI layout components

  • the-form
  • el-form-item
  • el-input
  • el-button
  • Fonts icon

Create a sub-branch

git checkout -b 分支的名字
例:git checkout -b login

View all branches of the current project

git branch

Guess you like

Origin www.cnblogs.com/songsongblue/p/12095906.html