From 892327cdda72838ef79c3b490f2fadcf8c45a756 Mon Sep 17 00:00:00 2001 From: asd Date: Fri, 29 Nov 2019 10:52:00 +0800 Subject: [PATCH] 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 + } } } };