This commit is contained in:
Putoo
2026-04-28 11:57:10 +08:00
parent 4facfd980c
commit cf6eddc431
2 changed files with 24 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@@ -0,0 +1,24 @@
export class StateHelper {
private static get userStore() {
return useUserStore()
}
static get Sid() {
const userStoret = useUserStore();
return userStoret.sid;
}
static get Token() {
return this.userStore.token;
}
static get refToken() {
return this.userStore.refToken;
}
static get userId() {
return this.userStore.userId;
}
static SetSid(sid: string) {
this.userStore.setSid(sid);
}
}