From 9283face6457e3e1495f4f2fc086330de13bd7c1 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 20 Mar 2024 16:06:27 +0800 Subject: [PATCH] fix --- src/libs/resize/index.js | 10 +++++----- src/mixins/article/index.js | 3 ++- src/pages/article/index.vue | 4 ++-- src/pages/column/index.vue | 8 ++++---- src/pages/index/list/index.vue | 8 ++++---- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/libs/resize/index.js b/src/libs/resize/index.js index 3c98c24..974aab4 100644 --- a/src/libs/resize/index.js +++ b/src/libs/resize/index.js @@ -12,8 +12,8 @@ function setRem() { } // 初始化 -setRem(); -// 改变窗口大小时重新设置 rem -window.onresize = function() { - setRem(); -}; \ No newline at end of file +// setRem(); +// // 改变窗口大小时重新设置 rem +// window.onresize = function() { +// setRem(); +// }; \ No newline at end of file diff --git a/src/mixins/article/index.js b/src/mixins/article/index.js index 0170a97..6e48b1d 100644 --- a/src/mixins/article/index.js +++ b/src/mixins/article/index.js @@ -30,7 +30,8 @@ export default { (this.site) : to.siteSelection if (ids[1]) { // 文章 - href = '/article?articleId=' + ids[1] + const columnIds = ids[0].split(',') + href = `/article?articleId=${ids[1]}&id=${columnIds[columnIds.length - 1]}` } else { // 栏目 const columnIds = ids[0].split(',') href = '/column?id=' + columnIds[columnIds.length - 1] diff --git a/src/pages/article/index.vue b/src/pages/article/index.vue index f818ef5..20c95e3 100644 --- a/src/pages/article/index.vue +++ b/src/pages/article/index.vue @@ -152,7 +152,7 @@ export default { } // 浏览量+1 - this.$post(this.api.articlePreview, Util.rsa(this.id)).then(res => { }).catch(err => { }) + this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(res => { }).catch(err => { }) this.loaded = true } } @@ -203,7 +203,7 @@ export default { font-size: 2rem; font-weight: 600; color: #fff; - background: url(../../assets/images/intro-bg.png) center center no-repeat; + background: url(../../assets/images/intro-bg.png) center center/cover no-repeat; object-fit: cover; } .article { diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue index 5bc0ef4..e1046ac 100644 --- a/src/pages/column/index.vue +++ b/src/pages/column/index.vue @@ -137,7 +137,7 @@