+
@@ -33,7 +33,7 @@
},
width: {
type: String,
- default: "60%"
+ default: "70%"
},
isShow: {
type: Boolean,
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 0f1b0b1..c1aefa8 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -1,7 +1,7 @@
@@ -11,6 +11,7 @@ export default {
name: 'AppMain',
computed: {
key() {
+
return this.$route.path
}
}
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index c715dbd..6219bf6 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -53,7 +53,10 @@
...mapGetters([
'sidebar',
'avatar'
- ])
+ ]),
+ },
+ created() {
+ this.searchword = this.$route.query.searchTitle ? this.$route.query.searchTitle : ''
},
data() {
return {
@@ -73,8 +76,7 @@
this.$Message.warning("请输入关键词")
return
} else {
-
- this.$router.push('/record/index?searchTitle='+this.searchword)
+ this.$router.push('/record/index?searchTitle=' + this.searchword)
}
}
}
diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue
index 6e39e89..7c8b0e3 100644
--- a/src/layout/components/Sidebar/SidebarItem.vue
+++ b/src/layout/components/Sidebar/SidebarItem.vue
@@ -18,7 +18,7 @@
-
diff --git a/src/layout/index.vue b/src/layout/index.vue
index db22a7b..cd17a2e 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -1,93 +1,103 @@
-