All checks were successful
构建Docker镜像 / build-and-deploy (push) Successful in 1m33s
16 lines
276 B
TypeScript
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
|
|
})
|