|
@@ -22,6 +22,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: login } = createNamespacedHelpers('login');
|
|
|
export default {
|
|
|
name: 'top',
|
|
|
props: {},
|
|
@@ -36,6 +37,7 @@ export default {
|
|
|
...mapState(['user']),
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...login(['logout']),
|
|
|
currentTime() {
|
|
|
setInterval(this.getTime, 500);
|
|
|
},
|
|
@@ -49,9 +51,12 @@ export default {
|
|
|
_this.gettime = yy + '-' + mm + '-' + dd + ' ' + weekday[day];
|
|
|
},
|
|
|
loginBtn() {
|
|
|
- this.$router.push({ path: '/login' });
|
|
|
+ window.location.href = 'http://free.liaoningdoupo.com/platlogin/';
|
|
|
+ },
|
|
|
+ toLogOut() {
|
|
|
+ this.logout();
|
|
|
+ window.location.href = 'http://free.liaoningdoupo.com/platlogin/';
|
|
|
},
|
|
|
- toLogOut() {},
|
|
|
},
|
|
|
};
|
|
|
</script>
|