|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script setup>
|
|
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
|
|
import { watch, onMounted, ref } from 'vue'
|
|
|
|
|
|
|
|
|
|
import Summary from './components/summary.vue'
|
|
|
|
|
import ShowCategory from './components/show_category.vue'
|
|
|
|
|
@ -30,6 +30,12 @@
|
|
|
|
|
currentWorkingInstrument.value = instruments.value.find(instrument => instrument.name === currentWorkingCategory.value.instrument)
|
|
|
|
|
}
|
|
|
|
|
onMounted(loadData)
|
|
|
|
|
|
|
|
|
|
watch(currentWorkingInstrument, () => {
|
|
|
|
|
console.log(currentWorkingCategory);
|
|
|
|
|
console.log(currentWorkingInstrument);
|
|
|
|
|
currentWorkingCategory.value = categories.value.find(category => category.instrument === currentWorkingInstrument.value.name)
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|