analysis sidebar is importing activeCategory properly
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
<template>
|
||||
<div class="component">
|
||||
|
||||
Analysis Container
|
||||
<p>{{category.name}}</p>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import { computed, reactive, onMounted, ref, watchEffect } from "vue";
|
||||
import { AppState } from '../AppState'
|
||||
|
||||
export default {
|
||||
setup(){
|
||||
return {}
|
||||
return {
|
||||
category: computed(() => AppState.activeCategory)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user