利用 vue-i18n 设置了多语言,现在可以通过 this.$t('notice') 获取到对应的语言,但是写到props的default属性里面报错,代码如下:
props: {
dialogTitle:{
type: String,
default: this.$t('notice')
}
错误提示如下:
相似问题