feat: global error display

This commit is contained in:
Methapon2001 2023-11-30 15:40:32 +07:00
parent f154a9c32f
commit c8a121fb8c
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -4,13 +4,16 @@ import { storeToRefs } from 'pinia'
import { useTreeDataStore } from '@/stores/tree-data' import { useTreeDataStore } from '@/stores/tree-data'
import { useSearchDataStore } from '@/stores/searched-data' import { useSearchDataStore } from '@/stores/searched-data'
import { useFileInfoStore } from '@/stores/file-info-data' import { useFileInfoStore } from '@/stores/file-info-data'
import FileItem from '@/components/FileItem.vue'
import TreeExplorer from '@/components/TreeExplorer.vue' import FileItem from './FileItem.vue'
import SearchBar from '@/modules/01_user/components/SearchBar.vue' import TreeExplorer from './TreeExplorer.vue'
import FileSearched from '@/components/FileSearched.vue' import FileSearched from '.FileSearched.vue'
import FileDownload from '@/modules/01_user/components/FileDownload.vue' import ListView from './ListView.vue'
import ListView from '@/components/ListView.vue'
import FolderForm from './FolderForm.vue' import FolderForm from './FolderForm.vue'
import GlobalErrorDialog from './GlobalErrorDialog.vue'
import SearchBar from '@/modules/01_user/components/SearchBar.vue'
import FileDownload from '@/modules/01_user/components/FileDownload.vue'
const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const
@ -181,6 +184,8 @@ onMounted(getCabinet)
v-model:name="folderFormData.name" v-model:name="folderFormData.name"
@submit="submitFolderForm" @submit="submitFolderForm"
/> />
<global-error-dialog />
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>