diff --git a/pages/webview-screenshot-comparison/webview-screenshot-comparison.uvue b/pages/webview-screenshot-comparison/webview-screenshot-comparison.uvue index 81814a8c06480ce64c7d91478818e6859c224a01..0ead1c6e6e910c3edf70543e1febddab22d7b73b 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';