Fix script exporting computed
This commit is contained in:
parent
2fba4381df
commit
5601c965dc
@ -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>
|
||||
|
||||
<!--
|
||||
|
Loading…
x
Reference in New Issue
Block a user