Browse Source

chore(playground): reset version when opening local playground from reproduction

Evan You 1 year ago
parent
commit
10ab8c0e7b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages-private/sfc-playground/src/Header.vue

+ 1 - 0
packages-private/sfc-playground/src/Header.vue

@@ -46,6 +46,7 @@ function resetVueVersion() {
 
 async function copyLink(e: MouseEvent) {
   if (e.metaKey) {
+    resetVueVersion()
     // hidden logic for going to local debug from play.vuejs.org
     window.location.href = 'http://localhost:5173/' + window.location.hash
     return