xzx пре 4 година
родитељ
комит
4d79f8ca1a
1 измењених фајлова са 2 додато и 7 уклоњено
  1. +2
    -7
      src/views/login.vue

+ 2
- 7
src/views/login.vue Прегледај датотеку

@@ -273,7 +273,6 @@ export default {
if (this.$cookie.get("remember")) { if (this.$cookie.get("remember")) {
this.account = this.$cookie.get("account"); this.account = this.$cookie.get("account");
this.pwd = this.$cookie.get("pwd"); this.pwd = this.$cookie.get("pwd");
this.isBackground = true;
var backgroundValue = this.$cookie.get("background"); var backgroundValue = this.$cookie.get("background");
if (backgroundValue == "false") { if (backgroundValue == "false") {
this.isBackground = false; this.isBackground = false;
@@ -421,11 +420,7 @@ export default {
*/ */
loginBackManage: function() { loginBackManage: function() {
this.loginShow = 2; this.loginShow = 2;
if(!this.isBackground){
this.isBackground = true;
}else{
this.isBackground = false;
}
this.isBackground = true;
}, },
/** /**
* @description: 系统登录 * @description: 系统登录
@@ -472,7 +467,7 @@ export default {
thisApp.$cookie.set("remember", true); thisApp.$cookie.set("remember", true);
thisApp.$cookie.set("account", thisApp.account); thisApp.$cookie.set("account", thisApp.account);
thisApp.$cookie.set("pwd", thisApp.pwd); thisApp.$cookie.set("pwd", thisApp.pwd);
thisApp.$cookie.set("background", thisApp.isBackground);
thisApp.$cookie.set("background", thisApp.isBackground);
} else { } else {
thisApp.$cookie.remove("remember"); thisApp.$cookie.remove("remember");
thisApp.$cookie.remove("account"); thisApp.$cookie.remove("account");


Loading…
Откажи
Сачувај