From e612c8e2bc01dbafdcb3aa3a9ab16421abe770c3 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 19 Jan 2024 16:44:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=85=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84this?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webview-screenshot-comparison.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/webview-screenshot-comparison/webview-screenshot-comparison.uvue b/pages/webview-screenshot-comparison/webview-screenshot-comparison.uvue index 81814a8c..0ead1c6e 100644 --- a/pages/webview-screenshot-comparison/webview-screenshot-comparison.uvue +++ b/pages/webview-screenshot-comparison/webview-screenshot-comparison.uvue @@ -26,12 +26,12 @@ }, methods: { appendWebHeadPlaceholder() { - if (src.indexOf('pages/template/navbar-lite/navbar-lite') > -1) { + if (this.src.indexOf('pages/template/navbar-lite/navbar-lite') > -1) { this.webviewContext?.evalJS(` const uniNavbar = document.querySelector('.uni-navbar'); uniNavbar.style.paddingTop = '${state.headerHeight - 44}px'; `) - } else if (src.indexOf('pages/template/scroll-fold-nav/scroll-fold-nav') > -1) { + } else if (this.src.indexOf('pages/template/scroll-fold-nav/scroll-fold-nav') > -1) { this.webviewContext?.evalJS(` const heightSeat = document.querySelector('.height-seat'); heightSeat.style.height = '125px'; -- GitLab