Vue3 watchEffect

代码实例如下:

const list = reactive([1, 2, 3])
const methods = {
  addList() {
    list.push(list.length + 1)
  },
  delList(index) {
    list.splice(index, 1)
  }
}

watch(list, (newVal) => console.log(newVal))
watchEffect(() => console.log(list))

return {
  list,
  ...methods
}

遇到的问题
watchEffect打印不出变化的list,watch能够正常打印,若是将watchEffect里面console.log(list)换成console.log(list.length)则能够正常打印,api文档不是说,当依赖项变更时重新执行嘛