lrf402788946 5 anni fa
parent
commit
3fdec8fa5f
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6 2
      layout/home/top.vue

+ 6 - 2
layout/home/top.vue

@@ -47,9 +47,13 @@ export default {
       _this.gettime = yy + '-' + mm + '-' + dd + ' ' + weekday[day];
     },
     loginBtn() {
-      this.$router.push({ path: '/login' });
+      window.location.href = 'http://free.liaoningdoupo.com/platlogin/';
+    },
+    toLogOut() {
+      localStorage.removeItem('token');
+      this.logout();
+      window.location.href = 'http://free.liaoningdoupo.com/platlogin/';
     },
-    toLogOut() {},
   },
 };
 </script>