From 15151156738c869d2b6d797daa0465817e9a1164 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 28 Nov 2021 10:07:46 +0800 Subject: [PATCH] u --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4bc9d40..b4a9309 100644 --- a/index.js +++ b/index.js @@ -87,7 +87,7 @@ module.exports = { this.SERVER_HOSTNAME_DEV // 在本机的手机模拟器里可以,在虚拟机的浏览器里也可以,但是运行到连接的iPhone里就无法连接,不知为何 protocol = 'http' } - return `${protocol}://${hostname}:${port}/${route}` + return `${protocol}://${hostname}:${port}/${route.replace(/^\//, '')}` }, makeBgUrl(path) {