From 8950f879551ac8b09381eaefa7df8a2a853aa6c5 Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Fri, 7 Oct 2022 17:40:08 +0800 Subject: [PATCH] =?UTF-8?q?clay=20commit=20:=20=E8=A7=A3=E5=86=B3=E6=9C=89?= =?UTF-8?q?=E4=B8=89=E7=BA=A7=E8=8F=9C=E5=8D=95=E6=97=B6=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/sist.js | 5 +++-- src/views/index/components/news_center.vue | 1 - src/views/index/components/undergraduate_and_graduate.vue | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/sist.js b/src/utils/sist.js index 76c1687..37a5b4a 100644 --- a/src/utils/sist.js +++ b/src/utils/sist.js @@ -105,10 +105,11 @@ export function toArticle(news, width) { vm.$router.push("/mobile/" + info.second.encodeId + "?id=" + news.id + "&type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang")); } } else { + console.log(info.three,"toArticle,info.three") if (width) { - vm.$router.push("/pc/" + info.second.encodeId + "/" + info.three.encodeId + "&id=" + news.id + "?type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang")); + vm.$router.push("/pc/" + info.second.encodeId + "/" + info.three.encodeId + "?id=" + news.id + "&lang=" + sessionStorage.getItem("lang")); } else { - vm.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "&id=" + news.id + "?type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang")); + vm.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "?id=" + news.id + "&lang=" + sessionStorage.getItem("lang")); } } }) diff --git a/src/views/index/components/news_center.vue b/src/views/index/components/news_center.vue index 23b089f..b7bfef7 100644 --- a/src/views/index/components/news_center.vue +++ b/src/views/index/components/news_center.vue @@ -22,7 +22,6 @@
-
diff --git a/src/views/index/components/undergraduate_and_graduate.vue b/src/views/index/components/undergraduate_and_graduate.vue index dedbdfb..cb6dcdc 100644 --- a/src/views/index/components/undergraduate_and_graduate.vue +++ b/src/views/index/components/undergraduate_and_graduate.vue @@ -72,6 +72,7 @@ export default { window.location.href = link;//当前标签页 }, getArticle(news) { + console.log(news) toArticle(news, this.width); }, lookMore(str) {