Signed-off-by: 吴文峰 <kevin@lmve.net>

This commit is contained in:
2026-04-16 20:36:03 +08:00
commit 3bb51d0794
29 changed files with 1063 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { defineStore } from 'pinia'
export const useUserStore = defineStore('user', {
state: () => ({
username: '',
token: ''
}),
actions: {
setUser(username, token) {
this.username = username
this.token = token
},
logout() {
this.username = ''
this.token = ''
}
}
})