From fbea0cf78dfb70adab927eb62123f6670d1cb2e9 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 11 Mar 2022 21:28:24 +0800 Subject: [PATCH] u --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 26e2254..5520dbe 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ export default { const pageName = this.thisPage()?.route || 'App' console.error('%c '+JSON.stringify({time:new Date().toJSON(), page:pageName}), 'background:red', ...args) } - },, + }, localizeText(i18nText) { const pageNow = this?.$store ? this // 对于组件内定义的 i18nText,要使用 this 来获得组建内的 i18nText,而不是 getCurrentPages[...] 去访问全局页面的 i18nText。