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。