Fix about pod info NOCHANGELOG
This commit is contained in:
parent
adf27c241b
commit
fd60fa2add
|
@ -1,14 +1,23 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { humanSize } from '~/utils/filters'
|
||||||
|
import { useGettext } from 'vue3-gettext'
|
||||||
import { useStore } from '~/store'
|
import { useStore } from '~/store'
|
||||||
import { get } from 'lodash-es'
|
import { get } from 'lodash-es'
|
||||||
import useMarkdown from '~/composables/useMarkdown'
|
|
||||||
import { humanSize } from '~/utils/filters'
|
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useGettext } from 'vue3-gettext'
|
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
|
import useMarkdown from '~/composables/useMarkdown'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const nodeinfo = computed(() => store.state.instance.nodeinfo)
|
const nodeinfo = computed(() => store.state.instance.nodeinfo)
|
||||||
|
|
||||||
|
const fetchData = async () => {
|
||||||
|
const response = await axios.get('instance/nodeinfo/2.0/')
|
||||||
|
store.commit('instance/nodeinfo', response.data)
|
||||||
|
}
|
||||||
|
fetchData()
|
||||||
|
|
||||||
const { $pgettext } = useGettext()
|
const { $pgettext } = useGettext()
|
||||||
const labels = computed(() => ({
|
const labels = computed(() => ({
|
||||||
title: $pgettext('Head/About/Title', 'About')
|
title: $pgettext('Head/About/Title', 'About')
|
||||||
|
|
Loading…
Reference in New Issue