Fix script exporting computed

This commit is contained in:
Jan Bader 2022-01-19 21:24:07 +00:00
parent 2fba4381df
commit 5601c965dc

View File

@ -1,8 +1,12 @@
<script setup>
import { computed, onMounted } from 'vue';
onMounted(function () { console.log(this.$store)});
//const dashboard = computed(() => this.$store.state);
<script>
export default {
computed: {
dashboard () {
console.log(this.$store.state);
return this.$store.state;
}
}
}
</script>
<!--