cache fix
All checks were successful
/ Make image (push) Successful in 2m30s

This commit is contained in:
nquidox 2025-11-02 20:02:05 +03:00
parent 0e51451ad2
commit 2b08889218

View file

@ -34,7 +34,7 @@ export const useLabelsStore = defineStore('labels', () => {
const getLabels = async () => {
try {
const response = await apiClient.get('/merch/labels')
const response = await apiClient.get(`/merch/labels?_=${Date.now()}`)
const labelList = Array.isArray(response.data) ? response.data : []
labels.value = labelList
localStorage.setItem('labels', JSON.stringify(labelList))
@ -46,7 +46,7 @@ export const useLabelsStore = defineStore('labels', () => {
const updateLabel = async (uuid, updatedData) => {
try {
await apiClient.put(`/merch/labels/${uuid}`, updatedData)
await apiClient.put(`/merch/labels/${uuid}?_=${Date.now()}`, updatedData)
await getLabels()
} catch (error) {
console.error('Failed to update label:', error)