|
@@ -7,7 +7,7 @@
|
7
|
7
|
<i class="ico"></i> |
|
8
|
8
|
<span class="photo"></span>
|
9
|
9
|
<span class="name">你好</span> |
|
10
|
|
- <a href="#" class="logout">退出</a>
|
|
10
|
+ <a href="#" class="logout" @click="logout" >退出</a>
|
11
|
11
|
</div>
|
12
|
12
|
</div>
|
13
|
13
|
<!-- 头部菜单栏 -->
|
|
@@ -33,7 +33,14 @@
|
33
|
33
|
export default {
|
34
|
34
|
|
35
|
35
|
data(){
|
36
|
|
-
|
|
36
|
+ return {
|
|
37
|
+
|
|
38
|
+ }
|
|
39
|
+ },
|
|
40
|
+ methods:{
|
|
41
|
+ logout(){
|
|
42
|
+ this.$router.push('/login')
|
|
43
|
+ }
|
37
|
44
|
}
|
38
|
45
|
}
|
39
|
46
|
</script>
|
|
@@ -125,4 +132,5 @@ font-size: 12px;
|
125
|
132
|
|
126
|
133
|
}
|
127
|
134
|
|
|
135
|
+
|
128
|
136
|
</style>
|