From 0320ee0f2f25576ebfe525fab805fe5ba0a629d3 Mon Sep 17 00:00:00 2001 From: 2214962083 <2214962083@qq.com> Date: Sun, 23 Oct 2022 17:33:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(dom-to-code):=20=E4=BF=AE=E5=A4=8D=20webpac?= =?UTF-8?q?k4=20=20=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/dom-to-code/src/core/transform/vue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dom-to-code/src/core/transform/vue.ts b/packages/dom-to-code/src/core/transform/vue.ts index 87f21d4..f533255 100644 --- a/packages/dom-to-code/src/core/transform/vue.ts +++ b/packages/dom-to-code/src/core/transform/vue.ts @@ -110,7 +110,7 @@ function parseVueRequest(id: string) { // 文件全路径 const [filename] = id.split('?', 2) - const url = new URL(id) + const url = new URL(id, 'http://domain.inspector') // vite 的 query 参数 const query = Object.fromEntries(url.searchParams.entries()) as VueQuery