Skip to content

Commit

Permalink
fix: 修复无法滚动
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 17, 2024
1 parent 00cec2f commit ea410b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const router = createRouter({

// 全局前置守卫
router.beforeResolve(async to => {
document.body.classList.remove('nut-overflow-hidden');
// 路由跳转时查询环境,决定是否更新数据
if (globalStore !== null) {
useEnvApi()
Expand Down
2 changes: 1 addition & 1 deletion src/views/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
bottom: bottomSafeArea + 48 + 12 + 8,
right: 16,
}"
:style="{ right: '16px', bottom: `${bottomSafeArea + 48 + 36}px` }"
:style="{ cursor: 'pointer', right: '16px', bottom: `${bottomSafeArea + 48 + 36}px` }"
>
<!-- 刷新 -->
<div v-if="showFloatingRefreshButton" class="drag-btn refresh" @click="refresh">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Sub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
bottom: bottomSafeArea + 48 + 12 + 8,
right: 16,
}"
:style="{ right: '16px', bottom: `${bottomSafeArea + 48 + 36}px` }"
:style="{ cursor: 'pointer', right: '16px', bottom: `${bottomSafeArea + 48 + 36}px` }"
>
<!-- 刷新 -->
<div v-if="showFloatingRefreshButton" class="drag-btn refresh" @click="refresh">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Sync.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
bottom: bottomSafeArea + 48 + 12 + 8,
right: 16,
}"
:style="{ right: '16px', bottom: `${bottomSafeArea + 48 + 36}px` }"
:style="{ cursor: 'pointer', right: '16px', bottom: `${bottomSafeArea + 48 + 36}px` }"
>
<div class="drag-btn" @click="onclickAddArtifact">
<font-awesome-icon icon="fa-solid fa-plus" />
Expand Down

0 comments on commit ea410b5

Please sign in to comment.