|
@@ -109,13 +109,6 @@ export default {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
|
|
- // debugger
|
|
|
- // postJson('/api/v1/sys/role/tree', { id: this.loginForm.username }).then(response => {
|
|
|
- // debugger
|
|
|
- // if (response.code === 200) {
|
|
|
- // this.setRole(response.data.checked)
|
|
|
- // }
|
|
|
- // })
|
|
|
localStorage.setItem('userName', this.loginForm.username)
|
|
|
this.$router.push({ path: this.redirect || '/' })
|
|
|
this.loading = false
|
|
@@ -192,7 +185,7 @@ $light_gray:#eee;
|
|
|
.login-container {
|
|
|
min-height: 100%;
|
|
|
width: 100%;
|
|
|
- background-color: $bg;
|
|
|
+ background-color: #fff;
|
|
|
overflow: hidden;
|
|
|
position: relative;
|
|
|
|