feat: port config store to pinia
This commit is contained in:
@ -34,8 +34,9 @@
|
||||
<script setup lang="ts">
|
||||
import {computed} from 'vue'
|
||||
|
||||
import { store } from '@/store'
|
||||
import {VERSION as frontendVersion} from '@/version.json'
|
||||
import {useConfigStore} from '@/stores/config'
|
||||
|
||||
const apiVersion = computed(() => store.state.config.version)
|
||||
const configStore = useConfigStore()
|
||||
const apiVersion = computed(() => configStore.version)
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user