Skip to content

Commit 0af47d2

Browse files
committed
chore: playground tests hmr
1 parent 8c5ad57 commit 0af47d2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

playground/src/pages/about.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
<script setup lang="ts">
2+
import { onMounted } from 'vue'
3+
import { routes } from 'vue-router/auto-routes'
4+
5+
definePage({
6+
meta: {
7+
n: 12,
8+
},
9+
})
10+
11+
onMounted(() => {
12+
console.log('routes', routes)
13+
})
14+
</script>
15+
116
<template>
217
<main>
318
<h1>About</h1>
19+
20+
<p>Increment to test HMR: 1</p>
21+
22+
<pre>{{ $route.meta }}</pre>
423
</main>
524
</template>

0 commit comments

Comments
 (0)