@@ -105,8 +106,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;
+ }
}
}
};
diff --git a/src/index.vue b/src/index.vue
index a5069ec..2209707 100644
--- a/src/index.vue
+++ b/src/index.vue
@@ -2,15 +2,19 @@
-
+
+
+
{{text}}
@@ -63,6 +67,12 @@ export default {
}
})
+ },
+ todetail(e){
+ window.console.log(e)
+ this.$router.push({
+ path: `/IndexArticleDetaill?id=`+e
+ });
}
},
components: {