Selaa lähdekoodia

[VersionBeta] V.1.0.0.0

[Adds]
1.修改登录切换前后台功能bug
new-cli
zxm 4 vuotta sitten
vanhempi
commit
172577f3c4
1 muutettua tiedostoa jossa 11 lisäystä ja 25 poistoa
  1. +11
    -25
      src/views/login.vue

+ 11
- 25
src/views/login.vue Näytä tiedosto

@@ -354,7 +354,11 @@ export default {
},
loginPage: function() {
this.loginShow = 1;
this.isBackground = false;
if(this.isBackground){
this.isBackground = false;
}else{
this.isBackground = true;
}
},
/**
* @description:返回登录
@@ -383,7 +387,6 @@ export default {
}
})
.then(function(response) {
console.log(response.data);
if (response.data.state == 1) {
thisApp.$notify({
title: "温馨提示",
@@ -418,7 +421,11 @@ export default {
*/
loginBackManage: function() {
this.loginShow = 2;
this.isBackground = true;
if(!this.isBackground){
this.isBackground = true;
}else{
this.isBackground = false;
}
},
/**
* @description: 系统登录
@@ -428,25 +435,11 @@ export default {
ToMain: function() {
var thisApp = this;
if (thisApp.account == "") {
// thisApp.$notify({
// title: "温馨提示",
// message: "请输入用户名",
// type: "warning",
// offset: 100,
// duration: 2500
// });
thisApp.errTips = true;
thisApp.tipmgs = "请输入用户名!";
return;
}
if (thisApp.pwd == "") {
// thisApp.$notify({
// title: "温馨提示",
// message: "请输入密码",
// type: "warning",
// offset: 100,
// duration: 2500
// });
thisApp.errTips = true;
thisApp.tipmgs = "请输入密码!";
return;
@@ -524,7 +517,7 @@ export default {
thisApp.$router.push({
path: "/system"
});
} else {
} else{
thisApp.$router.push({
path: "/company"
});
@@ -538,13 +531,6 @@ export default {
duration: 2500
});
} else {
// thisApp.$notify.error({
// title: "温馨提示5",
// message: response.data.message,
// type: "warning",
// offset: 100,
// duration: 5000
// });
thisApp.errTips = true;
thisApp.tipmgs = response.data.message;
}


Ladataan…
Peruuta
Tallenna