框架
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import {defineStore} from "pinia";
|
||||
import {ref} from "vue";
|
||||
|
||||
export const useSystemStore = defineStore("SystemStore", () => {
|
||||
|
||||
const isRoot = ref(false);
|
||||
return {
|
||||
|
||||
isRoot
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import {defineStore} from "pinia";
|
||||
import {ref} from "vue";
|
||||
|
||||
export const useUserStore = defineStore("UserStore", () => {
|
||||
const isLogin = ref(false);
|
||||
const isLogin = ref(true);
|
||||
const userInfo = ref(null);
|
||||
return {
|
||||
isLogin,
|
||||
|
||||
Reference in New Issue
Block a user