Обновление 1.0
Some checks failed
Build and Push Docker Image / test (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
brusnitsyn
2026-01-13 18:54:48 +09:00
parent bb36ef3a40
commit 76c5f6705e
7 changed files with 164 additions and 19 deletions

View File

@@ -0,0 +1,27 @@
import {defineStore} from "pinia";
import {computed, ref} from "vue";
export const useArchiveCard = defineStore('archive-card', () => {
const preOpenCard = ref(null)
const isOpenArchiveCard = ref(false)
const isSetPreOpenCard = computed(() => preOpenCard.value !== null)
const setPreOpenCard = (card) => {
preOpenCard.value = card
}
const resetPreOpenCard = () => {
preOpenCard.value = null
}
return {
preOpenCard,
isOpenArchiveCard,
isSetPreOpenCard,
setPreOpenCard,
resetPreOpenCard
}
})