Files
lightController/src/pages/DataPage.vue
Adrian Zürcher 3e2b95c1c3 update dbmData and Subscription so it is reactive
new save load scenes
2025-06-19 19:30:28 +02:00

21 lines
528 B
Vue

<template>
<q-btn class="q-ma-md" label="Save DBM" color="primary" push @click="saveDBM"></q-btn>
<DBMTree></DBMTree>
</template>
<script setup lang="ts">
import DBMTree from 'src/components/dbm/DBMTree.vue';
import { api } from 'src/boot/axios';
import { NotifyResponse } from 'src/composables/notify';
import { useQuasar } from 'quasar';
const $q = useQuasar();
function saveDBM() {
api
.get('saveData')
.then((resp) => NotifyResponse($q, resp.data))
.catch((err) => NotifyResponse($q, err));
}
</script>