fix #37
This commit is contained in:
parent
ab60a50437
commit
64af50816b
3 changed files with 30 additions and 2 deletions
|
|
@ -5,11 +5,12 @@ import { usePageStore } from "./page";
|
|||
export const useVirtualSampleStore = defineStore("virtual-sample", () => {
|
||||
const activeTab = ref("dynamic");
|
||||
const currentFile = ref(null);
|
||||
const isLoopAnimationEnabled = ref(false);
|
||||
|
||||
const { page } = usePageStore();
|
||||
const step = page.steps.find((step) => step.id === "virtualSample");
|
||||
|
||||
watch(activeTab, () => (currentFile.value = null));
|
||||
|
||||
return { activeTab, currentFile, step };
|
||||
return { activeTab, currentFile, step, isLoopAnimationEnabled };
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue