chore: update playground vapor welcome

This commit is contained in:
Evan You 2024-12-06 21:07:42 +08:00
parent e60ec9f399
commit f6f3f14a3e
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 1 additions and 7 deletions

View File

@ -1,15 +1,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, getCurrentInstance } from 'vue' import { ref } from 'vue'
const msg = ref('Hello World!') const msg = ref('Hello World!')
// @ts-expect-error
const isVapor = getCurrentInstance().vapor
</script> </script>
<template> <template>
<h1>{{ msg }}</h1> <h1>{{ msg }}</h1>
<p>
VAPOR <b>{{ isVapor ? 'ON' : 'OFF' }}</b>
</p>
<input v-model="msg" />
</template> </template>