feat: 添加管理员权限控制和状态持久化

This commit is contained in:
2025-09-02 12:31:48 +08:00
parent 652b913930
commit c938e5b770
8 changed files with 180 additions and 59 deletions

View File

@@ -3,6 +3,11 @@ import {defineStore} from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const token = ref("")
const isAdmin = ref(false)
return {token}
return {token, isAdmin}
}, {
persist: true
})