Fix get files #build_commit

This commit is contained in:
Andy-Ruda 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[];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,8 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Vite Vasanko</title>
<script type="module" crossorigin src="/assets/index-52a6c063.js"></script>
<link rel="stylesheet" href="/assets/index-fe1bb208.css">
<script type="module" crossorigin src="/assets/index-9cb21df7.js"></script>
<link rel="stylesheet" href="/assets/index-09b10238.css">
</head>
<body>
<div id="app"></div>