@@ -20,8 +20,6 @@ export default {
methods: {
toLogin() {
let route = window.location.pathname;
- console.log(route);
-
return route.includes('login');
},
@@ -68,7 +68,7 @@ export default {
// 点击名字
nameBtn() {
- this.$route.push({ path: '/login' });
+ this.$router.push({ path: '/login' });
// 退出登录
logoutBtn() {