vue3报错runtime-core.esm-bundler.js?d2dd:220 Uncaught TypeError: Assignment to constant variable
vue3报错runtime-core.esm-bundler.js
·
vue3报错runtime-core.esm-bundler.js?d2dd:220 Uncaught TypeError: Assignment to constant variable
子传父出现错误:
子组件代码:
emits('confirm', filterData.data)
父组件代码:
const filterConfirm = (value) => {
params.pageNo = 0
list.value = []
params = {
...params,
...value,
}
loadMore()
}
找了半天以为是emits有问题,结果是因为开始的时候赋值,应该用let而不是const。

更多推荐



所有评论(0)