src/views/login.vue
@@ -18,6 +18,7 @@ type="password" auto-complete="off" placeholder="密码" show-password @keyup.enter.native="handleLogin" > <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> @@ -98,8 +99,9 @@ watch: { $route: { handler: function(route) { // this.redirect = route.query && route.query.redirect; this.redirect = '/notCoalMine/nPeopleManage' console.log(route,'route') this.redirect = route.query && route.query.redirect; // this.redirect = '/notCoalMine/nPeopleManage' }, immediate: true }