Set up pinia
This commit is contained in:
parent
7ac29857ef
commit
160c8a626d
6 changed files with 74 additions and 1 deletions
10
gdn-app/src/components/Test.vue
Normal file
10
gdn-app/src/components/Test.vue
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<script setup lang="ts">
|
||||
import { useFooStore } from "@/stores/foo";
|
||||
|
||||
const foo = useFooStore();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
Foo is {{ foo.name }}.
|
||||
<button @click="foo.setName('bar')">Change to bar.</button>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue