From 892327cdda72838ef79c3b490f2fadcf8c45a756 Mon Sep 17 00:00:00 2001 From: asd Date: Fri, 29 Nov 2019 10:52:00 +0800 Subject: [PATCH 1/3] luyou --- src/components/indexhead.vue | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) 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 + } } } }; From 9ba197e4390a5031546deffb8bd934990b10345f Mon Sep 17 00:00:00 2001 From: asd Date: Fri, 29 Nov 2019 11:19:20 +0800 Subject: [PATCH 2/3] luyou --- src/components/indexhead.vue | 13 +++++++------ src/index.vue | 16 +++++++++++++--- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/components/indexhead.vue b/src/components/indexhead.vue index 6126c05..dd1d0d6 100644 --- a/src/components/indexhead.vue +++ b/src/components/indexhead.vue @@ -9,7 +9,8 @@
- + +