From 2b211dae96aa5f0cf7d665f7162bbfba6502d2f9 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 5 Jul 2022 16:20:11 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9=20=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main.js | 10 ++++++++-- .../capabilityCloud/components/PlatformOverview.vue | 4 ++-- .../src/views/personalCenter/components/Collection.vue | 3 ++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/front/src/main.js b/front/src/main.js index 5ceb3773..8cd80605 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-03-29 17:48:03 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-06-10 15:45:34 + * @LastEditors: hisense.liangjunhua + * @LastEditTime: 2022-07-05 15:04:47 * @Description: 告诉大家这是什么 */ import { createApp } from 'vue' @@ -45,3 +45,9 @@ app for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component) } +router.beforeEach((to, from, next) => { + // console.log('跳转路由=========>', to, from, next) + document.documentElement.scrollTop = 0 + document.body.scrollTop = 0 + next() +}) diff --git a/front/src/views/capabilityCloud/components/PlatformOverview.vue b/front/src/views/capabilityCloud/components/PlatformOverview.vue index 10f569e2..3b68b35d 100644 --- a/front/src/views/capabilityCloud/components/PlatformOverview.vue +++ b/front/src/views/capabilityCloud/components/PlatformOverview.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-19 10:15:33 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-19 17:52:04 + * @LastEditTime: 2022-07-05 16:11:11 * @Description: 告诉大家这是什么 -->