|
|
@@ -193,7 +193,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, computed, onMounted, onUnmounted } from "vue";
|
|
|
+import { ref, computed, onMounted, onUnmounted, watch } from "vue";
|
|
|
import { useRouter } from "vue-router";
|
|
|
import MobileHeader from "@/components/MobileHeader.vue";
|
|
|
import MobilePdfViewer from "@/components/MobilePdfViewer.vue";
|
|
|
@@ -407,9 +407,18 @@ onMounted(() => {
|
|
|
});
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
+ document.body.style.overflow = "";
|
|
|
if (scrollTimer) clearTimeout(scrollTimer);
|
|
|
if (searchTimer) clearTimeout(searchTimer);
|
|
|
});
|
|
|
+
|
|
|
+watch(previewVisible, (val) => {
|
|
|
+ if (val) {
|
|
|
+ document.body.style.overflow = "hidden";
|
|
|
+ } else {
|
|
|
+ document.body.style.overflow = "";
|
|
|
+ }
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|