From b07f86d249cce86bca9e5f2ca1d7efafb5f40ec1 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 16 Jan 2024 14:39:48 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E5=A4=8D=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E6=B5=8B=E8=AF=95=20baseSrc=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webview-screenshot-comparison.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js b/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js index 6c7c7716..17580811 100644 --- a/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js +++ b/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js @@ -236,8 +236,7 @@ describe("shot-compare", () => { // set webview-screenshot-comparison page baseSrc baseSrc = - process.env.UNI_WEB_SERVICE_URL || - "http://test.dcloud.io/unix_h5_build/98_dev_hello-uni-app-x/#/"; + process.env.UNI_WEB_SERVICE_URL ? `${process.env.UNI_WEB_SERVICE_URL}/#/` : "http://test.dcloud.io/unix_h5_build/98_dev_hello-uni-app-x/#/"; page.setData({ baseSrc, }); @@ -327,4 +326,4 @@ describe("shot-compare", () => { expect(1).toBe(1); }); } -}); +}); -- GitLab