watch: {
'$i18n.locale'(newValue, oldValue) {
console.log('language switch from ' + oldValue + ' to ' + newValue + '')
}
},
【vue随笔】监听i18n中英文切换变化
最新推荐文章于 2023-07-06 11:39:31 发布
watch: {
'$i18n.locale'(newValue, oldValue) {
console.log('language switch from ' + oldValue + ' to ' + newValue + '')
}
},