侦听器watch是数据setter后的回调,而computed的set就是数据的setter,如果computed中有set的话会导致watch中的监听失效,因为computed中会对数据重新进行defineProperty数据劫持,也就是根据你的set重新定义数据,而不是走vue默认的observe
侦听器watch是数据setter后的回调,而computed的set就是数据的setter,如果computed中有set的话会导致watch中的监听失效,因为computed中会对数据重新进行defineProperty数据劫持,也就是根据你的set重新定义数据,而不是走vue默认的observe