From 68dfb3d2dcecf120db0d00ee99e71da8ae6e5158 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Wed, 19 Oct 2022 16:33:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E5=92=8C?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/guideBox.vue | 10 ++-------- src/components/Portal/noteComment.vue | 2 +- src/views/Index.vue | 4 ++-- src/views/user/Setting.vue | 4 +++- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/Portal/guideBox.vue b/src/components/Portal/guideBox.vue index c37d8bbe..6f40fec6 100644 --- a/src/components/Portal/guideBox.vue +++ b/src/components/Portal/guideBox.vue @@ -72,23 +72,17 @@ } }, created() { - // clientWidth - console.log(document.body.clientWidth,'document.body.clientWidth'); let width = document.body.clientWidth; - if(width > 1920 || width == 1920) { - console.log(11111); + if(width > 1920) { this.clientWidth = '1088px'; } - if(width > 1681 && width < 1920) { - console.log(2222); + if(width > 1681 && width < 1920 || width == 1920) { this.clientWidth = '888px'; } if(width > 1367 && width < 1680) { - console.log(3333); this.clientWidth = '848px'; } if(width < 1366) { - console.log(444); this.clientWidth = '688px'; } //这里必须放在当前的Session存储中,不能每次都调用 diff --git a/src/components/Portal/noteComment.vue b/src/components/Portal/noteComment.vue index 17dfa60e..3c7d0c35 100644 --- a/src/components/Portal/noteComment.vue +++ b/src/components/Portal/noteComment.vue @@ -28,7 +28,7 @@
{{formatNum(qa.views)}}正在关注{{ qa.sysCreateTime.substring(0, 10) }}
{{ qa.title }}
{{ qa.content }}
-查看详情
+查看详情
{{form.sign}}
-