From dfd502d0db7d6cbdeaf3e543458ddadcde530f49 Mon Sep 17 00:00:00 2001 From: aBin Date: Mon, 28 Feb 2022 11:14:09 +0800 Subject: [PATCH] =?UTF-8?q?vs=5Ftest=200228bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Carousel/Carousel.vue | 15 +++++++++++---- src/components/HeadNav/HeadNav.vue | 1 - src/components/ListPage/ListPage.vue | 16 +++++++--------- src/components/RichText/RichText.vue | 18 +++++++++++++----- src/config/api.js | 6 ++++-- src/views/NewPages/NewPages.vue | 6 +++--- src/views/OtherPages/Search.vue | 5 ++--- 7 files changed, 40 insertions(+), 27 deletions(-) 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..bd786e2 100644 --- a/src/components/ListPage/ListPage.vue +++ b/src/components/ListPage/ListPage.vue @@ -6,8 +6,8 @@ v-for="item in yearList" :key="item.year" @click="changeYear(item.year)" - >{{ item.year }} + >{{ item.year }} +
@@ -30,8 +30,16 @@ export default {