u
This commit is contained in:
parent
964d8f3483
commit
fbea0cf78d
2
index.js
2
index.js
@ -42,7 +42,7 @@ export default {
|
|||||||
const pageName = this.thisPage()?.route || 'App'
|
const pageName = this.thisPage()?.route || 'App'
|
||||||
console.error('%c '+JSON.stringify({time:new Date().toJSON(), page:pageName}), 'background:red', ...args)
|
console.error('%c '+JSON.stringify({time:new Date().toJSON(), page:pageName}), 'background:red', ...args)
|
||||||
}
|
}
|
||||||
},,
|
},
|
||||||
|
|
||||||
localizeText(i18nText) {
|
localizeText(i18nText) {
|
||||||
const pageNow = this?.$store ? this // 对于组件内定义的 i18nText,要使用 this 来获得组建内的 i18nText,而不是 getCurrentPages[...] 去访问全局页面的 i18nText。
|
const pageNow = this?.$store ? this // 对于组件内定义的 i18nText,要使用 this 来获得组建内的 i18nText,而不是 getCurrentPages[...] 去访问全局页面的 i18nText。
|
||||||
|
Loading…
Reference in New Issue
Block a user