appStore.ts 352 B

12345678910111213141516
  1. import type { Ref } from 'vue'
  2. import { ref } from 'vue'
  3. import { defineStore } from 'pinia'
  4. export const useAppStore = defineStore('app', () => {
  5. const altchaPayload: Ref<string | null> = ref(null)
  6. const setAltchaPayload = (value: string | null) => {
  7. altchaPayload.value = value
  8. }
  9. return {
  10. altchaPayload,
  11. setAltchaPayload
  12. }
  13. })