easyai-mfe-demo/host/pages/index.vue
Antony Budianto de425bd9e5 init pinia
2025-01-03 17:37:54 +07:00

14 lines
323 B
Vue

<template>
<div>
Index page:
<p>Count: {{ counter.$state.count }}</p>
<button type="button" @click="() => counter.increment()">
increment+ pinia
</button>
</div>
</template>
<script setup lang="ts">
import { useCounter } from "@/stores/counter"
const counter = useCounter()
</script>