TypeError: _vm.$t is not a function

来源:8-1 课程总结

夏目鲸鱼

2020-04-30

console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Error in render: “TypeError: _vm.$t is not a function”

found in

---> <Start>
       <Root>

console.error node_modules/vue/dist/vue.runtime.common.dev.js:1884
TypeError: _vm.$t is not a function

代码:
export default class extends Vue {
sList: any = []
dList: any = []
s = 0
d = ‘’

@Watch(‘store’)
onStoreChange() {
const index = this.sList.findIndex(
(item: any) => item.id === this.store
)

写回答

1回答

夏目鲸鱼

提问者

2020-05-03

解决了

1
0

前端要学的测试课 从Jest入门到 TDD/BDD双实战

自动化测试实战 Vue / React 项目,让技术水平和架构思维双提升

1434 学习 · 350 问题

查看课程