From 2d8652a69dd1f88966a14f985ebce8135d302ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sat, 2 Mar 2024 19:32:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E4=BB=B6=E6=89=BE=E4=B8=8D?= =?UTF-8?q?=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 90d3637..fc8a153 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,5 +1,4 @@ import pagesJson from '@/pages.json' -import { translate as t } from '@/locale/index' console.log(pagesJson) @@ -12,15 +11,3 @@ export const getIsTabbar = () => { const currPath = pages.at(-1).route return !!pagesJson.tabBar.list.find((e) => e.pagePath === currPath) } - -/** - * test i18n in not .vue file - */ -export const testI18n = () => { - console.log(t('app.name')) - // 下面同样生效 - uni.showModal({ - title: 'i18n 测试', - content: t('app.name'), - }) -}