状态管理

This commit is contained in:
2025-11-11 20:34:58 +08:00
parent c20dd5955a
commit c752bfd3c2
11 changed files with 179 additions and 80 deletions
+6 -1
View File
@@ -1,5 +1,9 @@
<script setup>
import { my_network_func } from '@/my_network_func';
import { useUserStore } from '@/stores/user'
const user = useUserStore()
function t(){
console.log("test")
@@ -14,7 +18,8 @@ import { my_network_func } from '@/my_network_func';
<template>
<main>
111
1112
<button @click="t">222</button>
{{ user.isLoggedIn }}
</main>
</template>