feat: pinia

This commit is contained in:
2024-09-14 21:21:30 +08:00
parent 000eb1c790
commit c687634393
6 changed files with 81 additions and 1 deletions

10
src/stores/user.ts Normal file
View File

@ -0,0 +1,10 @@
import { defineStore } from "pinia";
import { ref } from "vue";
export const useUserStore = defineStore("user", () => {
const count = ref(0);
return {
count,
};
});