File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010</template >
1111
1212<script setup lang="ts">
13- import { computed } from ' vue'
14- import { JsonViewer } from ' vue3-json-viewer'
13+ import { computed , defineAsyncComponent } from ' vue'
1514import { useCoreStore } from ' @/stores/core'
15+ import " vue3-json-viewer/dist/vue3-json-viewer.css" ;
1616
1717defineProps <{
1818 value: any
1919 expandDepth? : number
2020}>()
2121
22+ const JsonViewer = defineAsyncComponent (() => import (' vue3-json-viewer' ).then (module => module .JsonViewer ))
2223const coreStore = useCoreStore ()
2324
2425const currentTheme = computed (() => (coreStore .theme === ' dark' ? ' dark' : ' light' ))
Original file line number Diff line number Diff line change @@ -117,9 +117,10 @@ import utc from 'dayjs/plugin/utc';
117117import timezone from ' dayjs/plugin/timezone' ;
118118import {checkEmptyValues } from ' @/utils' ;
119119import { useRoute , useRouter } from ' vue-router' ;
120- import { JsonViewer } from " vue3-json-viewer" ;
121120import " vue3-json-viewer/dist/vue3-json-viewer.css" ;
121+ import { defineAsyncComponent } from ' vue' ;
122122import type { AdminForthResourceColumnCommon } from ' @/types/Common' ;
123+ const JsonViewer = defineAsyncComponent (() => import (' vue3-json-viewer' ).then (module => module .JsonViewer ))
123124
124125import { useCoreStore } from ' @/stores/core' ;
125126
You can’t perform that action at this time.
0 commit comments