Fix get files #build_commit

This commit is contained in:
2023-10-26 09:48:12 -05:00
parent 74987898c9
commit e52379d515
4 changed files with 34 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
<template>
<main>
<!-- <h2 v-if="!documentStore.loading && documentStore.error"> {{ documentStore.error }} </h2> -->
<div class="carousel-container" v-if="!documentStore.loading && documentStore.document[0] &&documentStore.document[0].type === 'file'">
<div class="carousel-container" v-if="!documentStore.loading && documentStore.mainDocument[0] && documentStore.mainDocument[0].type === 'file'">
<FileCarousel></FileCarousel>
</div>
@@ -61,7 +61,7 @@
</template>
<script setup lang="ts">
import { ref, h, computed, reactive } from 'vue'
import { ref, h, computed, reactive, watchEffect } from 'vue'
import type { UnwrapRef } from 'vue'
import { cloneDeep } from 'lodash';
import { useDocumentStore } from '@/stores/documents'
@@ -73,6 +73,9 @@
type Key = string | number;
const documentStore = useDocumentStore()
watchEffect(()=>{
console.log(documentStore.mainDocument)
})
const editableData: UnwrapRef<Record<string, Document>> = reactive({});
const state = reactive<{
selectedRowKeys: Key[];