Make a demo?

This commit is contained in:
yuanhau 2025-05-19 14:38:59 +08:00
parent edd8e5b05a
commit 2495911a81
4 changed files with 49 additions and 4 deletions

14
pages/demo.vue Normal file
View file

@ -0,0 +1,14 @@
<script setup lang="ts">
import CheckKidUnfriendlyContent from "~/components/checks/checkKidUnfriendlyContent";
const title = ref("");
const system = ref(false);
const checkTitle = () => {
if (!title.value) return;
system.value = CheckKidUnfriendlyContent(title.value);
}
</script>
<template>
<input type="text" v-model="title">
<button @click="checkTitle">
<div>{{ system }}</div>
</template>