fix: ajout ObjetsView oublie

This commit is contained in:
Kazhnuz 2023-02-08 20:45:55 +01:00
parent 60e29fbdc0
commit f8b9a3d272

24
src/views/ObjetsView.vue Normal file
View file

@ -0,0 +1,24 @@
<script setup lang="ts">
import DynTable from "@/components/tableaux/DynTable.vue";
import { useConfigStore } from "@/stores/config";
import { onMounted } from "vue";
import { useRoute } from "vue-router";
import MarkdownFile from "../components/MarkdownFile.vue";
import { objectFields } from "@/data/fields";
const store = useConfigStore();
const route = useRoute();
const objectTest = ["base", "potions"];
onMounted(() => {
store.loadJdr(`${route.params.jdr}`);
});
</script>
<template>
<main>
<MarkdownFile :path="`rules/inventaire/objets`">
<DynTable :fields="objectFields" :files="objectTest" />
</MarkdownFile>
</main>
</template>