From 5e7d1d27b2a81aa97d0e3e235d043bbcc9ea5e00 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Sun, 8 Jan 2023 19:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=BC=96=E8=AF=91=E6=8F=92=E4=BB=B6=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/WechatMpPlugin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/WechatMpPlugin.js b/plugins/WechatMpPlugin.js index d2a584d..6389f84 100644 --- a/plugins/WechatMpPlugin.js +++ b/plugins/WechatMpPlugin.js @@ -622,9 +622,10 @@ class OakWeChatMpPlugin { let alias = ''; // 获取路径 别名 for (const k of Object.keys(this.alias)) { - if (resource.includes(this.alias[k])) { + const prefix = replaceDoubleSlash(this.alias[k]); + if (resource.includes(prefix)) { alias = k; - prefixPath = this.alias[k]; + prefixPath = prefix; break; } }