diff --git a/src/components/Carousel/Carousel.vue b/src/components/Carousel/Carousel.vue index e385fa6..7ab0955 100644 --- a/src/components/Carousel/Carousel.vue +++ b/src/components/Carousel/Carousel.vue @@ -2,10 +2,10 @@
- +
-
+
高举中国特色社会主义伟大旗帜,紧密团结在以习近平同志 @@ -27,9 +27,13 @@ export default { imgList: [], str: '', code: '0000', + route: '/', }; }, watch: { + '$route.path'(val) { + this.route = val; + }, '$route.query.code'(val) { console.log('val: ', val); if (val) { @@ -42,6 +46,7 @@ export default { }, created() { this.code = this.$route.query.code || '0000'; + this.route = this.$route.path; this.getImg(); }, methods: { @@ -72,8 +77,10 @@ export default { .ant-carousel >>> .slick-slide { /* text-align: center; */ - height: 380px; - line-height: 380px; + height: 300px; + width: 100%; + line-height: 300px; + width: 100%; /* background: #364d79; */ overflow: hidden; } diff --git a/src/components/HeadNav/HeadNav.vue b/src/components/HeadNav/HeadNav.vue index c7e02c6..bca9f2d 100644 --- a/src/components/HeadNav/HeadNav.vue +++ b/src/components/HeadNav/HeadNav.vue @@ -988,7 +988,6 @@ export default { watch: { '$route.path'(val) { if (this.$route.query.text) { - console.log('this.$route.query.text: ', this.$route.query.text); this.text = this.$route.query.text; } for (let i = 0; i < this.tabList.length; i++) { diff --git a/src/components/ListPage/ListPage.vue b/src/components/ListPage/ListPage.vue index 0ac05d1..838dec3 100644 --- a/src/components/ListPage/ListPage.vue +++ b/src/components/ListPage/ListPage.vue @@ -6,14 +6,14 @@ v-for="item in yearList" :key="item.year" @click="changeYear(item.year)" - >{{ item.year }} + >{{ item.year }} +
@@ -30,8 +30,16 @@ export default {