self.$confirm(`this.$t('answerPage.whetherToSubmit')`, {
cancelButtonText: '返回答题',
confirmButtonText: '交作业',
center: true,
roundButton: true
})
self.$confirm(`this.$t('answerPage.whetherToSubmit')`, {
cancelButtonText: '返回答题',
confirmButtonText: '交作业',
center: true,
roundButton: true
})
要改成,下面这样,注意 this.$t('answerPage.whetherToSubmit') ,这是基础的语法问题