Files
dypid/web/src/stores/counter.ts
YGXB_net 640b1aa99e
All checks were successful
构建Docker镜像 / build-and-deploy (push) Successful in 1m33s
feat(auth): 重构权限管理系统和路由结构
2025-09-04 13:08:48 +08:00

16 lines
276 B
TypeScript

import {ref, computed} from 'vue'
import {defineStore} from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const homeToken = ref("")
const token = ref("")
const isAdmin = ref(false)
return {token, isAdmin}
}, {
persist: true
})