diff --git a/src/components/indexhead.vue b/src/components/indexhead.vue
index b40b6ad..6126c05 100644
--- a/src/components/indexhead.vue
+++ b/src/components/indexhead.vue
@@ -3,9 +3,9 @@
-
首页
-
我的主页
-
退出登录
+
首页
+
我的主页
+
退出登录
@@ -105,8 +105,27 @@ export default {
shuru() {
window.console.log(this.serch);
this.$router.push({
- path: `/indexfind?word=`+this.serch
+ path: `/indexfind?word=` + this.serch
});
+ },
+ tab(e) {
+ switch (e) {
+ case 0:
+ this.$router.push({
+ path: `/index`
+ });
+ break
+ case 1:
+ this.$router.push({
+ path: `/PersonalHomepage`
+ });
+ break
+ case 2:
+ this.$router.push({
+ path: `/login`
+ });
+ break
+ }
}
}
};