File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
packages/online-playground/src Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ provide(PiniaVersionKey, piniaVersion)
5656// piniaVersion.value === 'latest' ? '^2.1.0' : piniaVersion.value
5757// })
5858
59- console .log (' files' , store .getFiles ()[' import-map.json' ])
60-
6159if (! hash ) {
6260 store .setImportMap ({
6361 imports: {
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { downloadProject } from ' ./download/download'
3- import { inject , provide , ref } from ' vue'
3+ import { inject , ref } from ' vue'
44import Sun from ' ./icons/Sun.vue'
55import Moon from ' ./icons/Moon.vue'
66import Share from ' ./icons/Share.vue'
@@ -19,7 +19,8 @@ const emit = defineEmits(['toggle-theme', 'toggle-dev'])
1919const { store } = props
2020
2121const currentCommit = __COMMIT__
22- const vueVersion = ref (` latest ` )
22+ // parse version from the runtimeURL
23+ const vueVersion = ref (' latest' )
2324const piniaVersion = inject (PiniaVersionKey )!
2425
2526async function setVueVersion(v : string ) {
@@ -28,11 +29,6 @@ async function setVueVersion(v: string) {
2829 vueVersion .value = ` v${v } `
2930}
3031
31- function resetVueVersion() {
32- store .resetVueVersion ()
33- vueVersion .value = ` latest `
34- }
35-
3632async function copyLink(e : MouseEvent ) {
3733 if (e .metaKey ) {
3834 // hidden logic for going to local debug from play.vuejs.org
You can’t perform that action at this time.
0 commit comments