From 20ae051417c7df1126d05a503019a5c08b9126ce Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Tue, 4 Mar 2025 15:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E5=8C=BB=E7=94=9F=E7=9A=84?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=9C=A8=E5=BE=AE=E4=BF=A1=E4=B8=8A=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=B8=8D=E5=88=B0=E9=93=BE=E6=8E=A5=E5=90=8E=E9=9D=A2?= =?UTF-8?q?=E7=9A=84get=20=E5=8F=82=E6=95=B0did?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App.vue b/App.vue index 1be10e4..c087f74 100644 --- a/App.vue +++ b/App.vue @@ -8,7 +8,7 @@ console.log(option,'option===='); var did = false try { - const pathParts = location.href.split('/'); + const pathParts = location.pathname.split('/'); const paramIndex = pathParts.indexOf('did'); if(paramIndex !== -1 && paramIndex + 1 < pathParts.length) { did = pathParts[paramIndex + 1]