Invoices can be uploaded
This commit is contained in:
29
app/Views/Components/TextResource.vue
Normal file
29
app/Views/Components/TextResource.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<script setup>
|
||||
import {onMounted, reactive} from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
textName: { type: String},
|
||||
belongsTo: { type: String},
|
||||
})
|
||||
|
||||
const contentData = reactive({
|
||||
content: '',
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
const response = await fetch('/api/v1/core/retrieve-text-resource/' + props.textName);
|
||||
const data = await response.json();
|
||||
Object.assign(contentData, data);
|
||||
console.log(contentData)
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<label :for="props.belongsTo">{{contentData.content}}</label>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user