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]