We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e6461 commit 2e3984fCopy full SHA for 2e3984f
packages/sfc-playground/src/store.ts
@@ -9,7 +9,23 @@ import {
9
} from '@vue/compiler-sfc'
10
11
const storeKey = 'sfc-code'
12
-const saved = localStorage.getItem(storeKey) || ''
+const saved =
13
+ localStorage.getItem(storeKey) ||
14
+ `
15
+<template>
16
+ <h1>{{ msg }}</h1>
17
+</template>
18
+
19
+<script setup>
20
+const msg = 'Hello World!'
21
+</script>
22
23
+<style scoped>
24
+h1 {
25
+ color: #42b983;
26
+}
27
+</style>
28
+`.trim()
29
30
// @ts-ignore
31
export const sandboxVueURL = import.meta.env.PROD
0 commit comments