初始化

This commit is contained in:
Ran
2026-08-25 17:59:42 +08:00
commit 4b7380dd9b
408 changed files with 327400 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { defineStore } from "pinia";
export const useUiStore = defineStore("web-ui", {
state: () => ({
loginOpen: false,
loginRedirect: "/",
}),
actions: {
openLogin(redirect = "/") {
this.loginRedirect = redirect;
this.loginOpen = true;
},
},
});