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: 告诉大家这是什么 -->