This commit is contained in:
陆柯 2022-03-11 21:28:24 +08:00
parent 964d8f3483
commit fbea0cf78d

View File

@ -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。