feat: 添加管理员权限控制和状态持久化
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user