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({