From db3225736aa34192d34eeea3c657b2ede54a4bd9 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 23 十月 2024 16:33:24 +0800 Subject: [PATCH] 民航服务心理 --- src/books/civilAviation/view/components/index.vue | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/books/civilAviation/view/components/index.vue b/src/books/civilAviation/view/components/index.vue index 294406d..c140f6c 100644 --- a/src/books/civilAviation/view/components/index.vue +++ b/src/books/civilAviation/view/components/index.vue @@ -1,10 +1,10 @@ <template> - <div class="page-main" @scroll="throttledScrollHandler"> + <div class="page-main" @scroll="throttledScrollHandler"> <div id="searchDomBox" style="display: none"> <div id="searchContent"></div> </div> <div class="page-content" :style="{ - fontSize: fontSize ? fontSize + 'px' : '16px', + fontSize: fontSize ? fontSize + 'px' : '18px', transform: `scale(${pageZoom ? pageZoom : 1})`, transformOrigin: 'center top', }"> @@ -46,6 +46,7 @@ }, computed: { fontSize() { + this.transformDom(this.$store.state.qiankun.fontSize) return this.$store.state.qiankun.fontSize; }, pageZoom() { @@ -209,7 +210,7 @@ event.target.scrollHeight - this.loadThreshold ) { console.log(1); - + debugger // 鍒拌揪闃堝�� if ( @@ -909,6 +910,13 @@ playVudio.requestPictureInPicture(); } } + }, + //鍏朵粬绫诲悕涓嬪瓧浣撳ぇ灏忓彉鍖� + transformDom(fs) { + const blockElement = this.$refs.blockElement; + if (blockElement) { + blockElement.style.fontSize = fs; // 鎴栬�呬綘鎯宠鐨勪换浣曞ぇ灏� + } } }, components: { -- Gitblit v1.9.1