Fix bugs, vue-json-pretty package

This commit is contained in:
2024-03-31 17:33:47 +02:00
parent 95657481d5
commit c8775f0449
5 changed files with 12 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import Card from '@/Components/Card.vue';
import Icon from '@/Components/Icon.vue';
import Builder from '@/Components/DataTable/Builder.vue';
import Th from '@/Components/DataTable/Th.vue';
import VueJsonPretty from "vue-json-pretty";
</script>
<template>
@@ -99,7 +100,7 @@ import Th from '@/Components/DataTable/Th.vue';
</td>
<td class="px-2 py-1 border border-inherit ">
{{ rec.context }}
<vue-json-pretty :data="JSON.parse(rec.context)" />
</td>
<td class="px-2 py-1 border border-inherit ">
@@ -113,3 +114,8 @@ import Th from '@/Components/DataTable/Th.vue';
</Card>
</DashboardLayout>
</template>
<style>
@import 'vue-json-pretty/lib/styles.css';
</style>