From 5372143b431394ece7465ce6bed97600f78f3afe Mon Sep 17 00:00:00 2001 From: Gimmy <975402925@qq.com> Date: Thu, 7 Sep 2023 02:53:33 -0700 Subject: [PATCH] fix(playground): fix jump to incorrect demo --- examples/sites/playground/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sites/playground/App.vue b/examples/sites/playground/App.vue index 5d750ef19b..b67ea658f2 100644 --- a/examples/sites/playground/App.vue +++ b/examples/sites/playground/App.vue @@ -26,8 +26,8 @@ const createImportMap = (version) => { } } } -// 如果hash有效,它格式为: 3.8.4|eNqIVV9p............. -const hash = location.hash.slice(1) +// 如果hash有效,它格式为: 3.8.4|eNqIVV9p...... 如果'|' 被转义成'%7C' 则再转义回来 +const hash = location.hash.slice(1).replace('%7C', '|') const shareData = hash.split('|') const store = new useStore({