摘要: 不要在计算属性内直接修改data里面的数据,eslint会报 no-side-effects-in-computed-properties 错误,如果非要改可以写在一个函数里,然后在计算属性里调用该函数。 例如下面这个就会报no-side-effects-in-computed-properties 阅读全文
posted @ 2019-04-15 23:32 Mr丶shawY 阅读(1827) 评论(0) 推荐(0)