feat: UI move AdminContact to common (#217)

This commit is contained in:
Dream Hunter
2024-05-09 20:14:29 +08:00
committed by GitHub
parent 9bfded4d1d
commit 45783c7494
3 changed files with 2 additions and 2 deletions
@@ -0,0 +1,23 @@
<script setup>
import { useI18n } from 'vue-i18n'
import { useGlobalState } from '../../store'
const { localeCache, openSettings } = useGlobalState()
const { t } = useI18n({
locale: localeCache.value || 'zh',
messages: {
en: {
adminContact: 'If you need help, please contact the administrator ({msg})',
},
zh: {
adminContact: '如果你需要帮助,请联系管理员 ({msg})',
}
}
});
</script>
<template>
<n-alert v-if="openSettings.adminContact" :show-icon="false">
<span>{{ t('adminContact', { msg: openSettings.adminContact }) }}</span>
</n-alert>
</template>