From 62592872406f2f5ee957cb742b1519661cc16a80 Mon Sep 17 00:00:00 2001 From: Alue Gitman <51526702+sigma-plus@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:06:33 +0800 Subject: [PATCH 1/5] fix(projects): hide AppVersionNotification in DEV mode (#482) --- src/plugins/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/app.ts b/src/plugins/app.ts index 8376c9e7..553fef7c 100644 --- a/src/plugins/app.ts +++ b/src/plugins/app.ts @@ -6,7 +6,7 @@ export function setupAppVersionNotification() { document.addEventListener('visibilitychange', async () => { const buildTime = await getHtmlBuildTime(); - if (buildTime !== BUILD_TIME && document.visibilityState === 'visible') { + if (!import.meta.env.DEV && buildTime !== BUILD_TIME && document.visibilityState === 'visible') { const n = window.$notification?.create({ title: $t('system.updateTitle'), content: $t('system.updateContent'), From 9094b21cbba9cd77a9be2b2df63398c5fc1c97e6 Mon Sep 17 00:00:00 2001 From: Soybean Date: Tue, 11 Jun 2024 19:04:07 +0800 Subject: [PATCH 2/5] feat(projects): reset scroll position when tab change --- src/layouts/modules/global-content/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/layouts/modules/global-content/index.vue b/src/layouts/modules/global-content/index.vue index ff8ded61..2e7a05b2 100644 --- a/src/layouts/modules/global-content/index.vue +++ b/src/layouts/modules/global-content/index.vue @@ -1,5 +1,6 @@