watch: {
'$i18n.locale'(newValue, oldValue) {
console.log('language switch from ' + oldValue + ' to ' + newValue + '')
}
},
监听i18n中英文切换变化
于 2023-05-30 15:53:08 首次发布
watch: {
'$i18n.locale'(newValue, oldValue) {
console.log('language switch from ' + oldValue + ' to ' + newValue + '')
}
},