|
|
@ -16,7 +16,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { defineComponent, onMounted, ref} from 'vue' |
|
|
|
import { defineComponent, onMounted, ref } from 'vue' |
|
|
|
import Card from '@/components/card' |
|
|
|
import Card from '@/components/card' |
|
|
|
import { NSpace } from 'naive-ui' |
|
|
|
import { NSpace } from 'naive-ui' |
|
|
|
import { queryProductInfo } from '@/service/modules/ui-plugins' |
|
|
|
import { queryProductInfo } from '@/service/modules/ui-plugins' |
|
|
@ -30,7 +30,7 @@ const about = defineComponent({ |
|
|
|
if (!productInfo) throw Error() |
|
|
|
if (!productInfo) throw Error() |
|
|
|
info.value = productInfo.version |
|
|
|
info.value = productInfo.version |
|
|
|
} |
|
|
|
} |
|
|
|
onMounted( () => { |
|
|
|
onMounted(() => { |
|
|
|
queryProduct() |
|
|
|
queryProduct() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -41,13 +41,11 @@ const about = defineComponent({ |
|
|
|
const { info } = this |
|
|
|
const { info } = this |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<Card |
|
|
|
<Card title={t('about.about')}> |
|
|
|
title={t('about.about')} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NSpace vertical> |
|
|
|
<NSpace vertical> |
|
|
|
<NSpace align='center' > |
|
|
|
<NSpace align='center'> |
|
|
|
<span>{t('about.about_version')}</span> |
|
|
|
<span>{t('about.about_version')}</span> |
|
|
|
<div>{ info }</div> |
|
|
|
<div>{info}</div> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</Card> |
|
|
|
</Card> |
|
|
|