Skip to content

Commit b097a1a

Browse files
committed
chore: minor changes
1 parent 51de4e6 commit b097a1a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

packages/online-playground/src/App.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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-
6159
if (!hash) {
6260
store.setImportMap({
6361
imports: {

packages/online-playground/src/Header.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { downloadProject } from './download/download'
3-
import { inject, provide, ref } from 'vue'
3+
import { inject, ref } from 'vue'
44
import Sun from './icons/Sun.vue'
55
import Moon from './icons/Moon.vue'
66
import Share from './icons/Share.vue'
@@ -19,7 +19,8 @@ const emit = defineEmits(['toggle-theme', 'toggle-dev'])
1919
const { store } = props
2020
2121
const currentCommit = __COMMIT__
22-
const vueVersion = ref(`latest`)
22+
// parse version from the runtimeURL
23+
const vueVersion = ref('latest')
2324
const piniaVersion = inject(PiniaVersionKey)!
2425
2526
async 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-
3632
async function copyLink(e: MouseEvent) {
3733
if (e.metaKey) {
3834
// hidden logic for going to local debug from play.vuejs.org

0 commit comments

Comments
 (0)