fix #138
This commit is contained in:
parent
432f718b14
commit
f34ceb1559
5 changed files with 38 additions and 34 deletions
|
|
@ -30,22 +30,22 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, watch } from "vue";
|
||||
import { useVirtualSampleStore } from "../../../stores/virtualSample";
|
||||
import PdfViewer from "../PdfViewer.vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useDialogStore } from "../../../stores/dialog";
|
||||
import { ref, watch } from 'vue';
|
||||
import { useVirtualSampleStore } from '../../../stores/virtualSample';
|
||||
import PdfViewer from '../PdfViewer.vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useDialogStore } from '../../../stores/dialog';
|
||||
|
||||
const { step } = useVirtualSampleStore();
|
||||
const { step } = storeToRefs(useVirtualSampleStore());
|
||||
const { openedFile, activeTracks } = storeToRefs(useDialogStore());
|
||||
const activeTab = ref(Object.keys(step.files.static)[0]);
|
||||
const activeTab = ref(Object.keys(step.value.files.static)[0]);
|
||||
|
||||
activeTracks.value = [];
|
||||
|
||||
watch(
|
||||
activeTab,
|
||||
(newVal) => {
|
||||
openedFile.value = step.files.static[newVal];
|
||||
openedFile.value = step.value.files.static[newVal];
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ const { isCommentsOpen, isCommentPanelEnabled, activeTracks, openedFile } =
|
|||
const { page } = storeToRefs(usePageStore());
|
||||
|
||||
isLoopAnimationEnabled.value = false;
|
||||
activeTab.value = 'dynamic';
|
||||
|
||||
// Variables
|
||||
const router = useRouter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue