virtual sample : create virtual sample store, activate dl image btn

This commit is contained in:
isUnknown 2024-11-21 10:08:37 +01:00
parent a98665313f
commit fc576e917b
4 changed files with 147 additions and 8 deletions

View file

@ -0,0 +1,11 @@
import { defineStore } from "pinia";
import { ref, watch } from "vue";
export const useVirtualSampleStore = defineStore("virtual-sample", () => {
const activeTab = ref("dynamic");
const currentFile = ref(null);
watch(activeTab, () => (currentFile.value = null));
return { activeTab, currentFile };
});