reactive定义的对象中的数组push不触发响应式

const {effect, reactive} = Vue;
const state = reactive({ show: true, values : [1,2,3] })
effect(() => {
if (state.show) {
console.log(state.values);
}
})
// 不触发响应式
state.values.push(4)
// 触发响应式
state.values = [1]

state.values=state.values.push(4); 这样试试 push 需要重新赋值

应该可以啊,你push完之后打印下看看