mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-22 09:16:44 +08:00
提交修改弹窗
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
apiLogin.boeLogin(this.curToken).then(rs=>{
|
||||
if(rs.status==200){
|
||||
//setToken(rs.result.access_token);
|
||||
localStorage.setItem(this.$Constants.newLoginKey,1);
|
||||
if(this.toUrl){
|
||||
location.href=this.toUrl;
|
||||
}else{
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
this.$store.dispatch("Login", this.form).then(rs => {
|
||||
if(rs.status == 200){
|
||||
// 记住密码
|
||||
localStorage.setItem(this.$Constants.newLoginKey,1);
|
||||
if(this.rememberMe){
|
||||
let rememberMeOjb = {rememberMe:true,loginName:this.form.loginName,password:this.form.password};
|
||||
this.$store.dispatch("portal/SetLoginRememberMe", rememberMeOjb)
|
||||
|
||||
Reference in New Issue
Block a user