From 962f90de445d7935ad76ea7b74a98f12ce9a7498 Mon Sep 17 00:00:00 2001
From: vben <anncwb@126.com>
Date: 星期二, 01 十二月 2020 23:51:39 +0800
Subject: [PATCH] feat: support vscode i18n-ally plugin

---
 src/layouts/default/footer/index.tsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/layouts/default/footer/index.tsx b/src/layouts/default/footer/index.tsx
index 45d548d..f590742 100644
--- a/src/layouts/default/footer/index.tsx
+++ b/src/layouts/default/footer/index.tsx
@@ -13,16 +13,16 @@
 export default defineComponent({
   name: 'LayoutContent',
   setup() {
-    const { t } = useI18n('layout.footer');
+    const { t } = useI18n();
     return () => {
       return (
         <Layout.Footer class="layout-footer">
           {() => (
             <>
               <div class="layout-footer__links">
-                <a onClick={() => openWindow(SITE_URL)}>{t('onlinePreview')}</a>
+                <a onClick={() => openWindow(SITE_URL)}>{t('layout.footer.onlinePreview')}</a>
                 <GithubFilled onClick={() => openWindow(GITHUB_URL)} class="github" />
-                <a onClick={() => openWindow(DOC_URL)}>{t('onlineDocument')}</a>
+                <a onClick={() => openWindow(DOC_URL)}>{t('layout.footer.onlineDocument')}</a>
               </div>
               <div>Copyright &copy;2020 Vben Admin</div>
             </>

--
Gitblit v1.8.0