vue.set()报错的解决办法:使用【Vue.set()】在data里的对象上增加属性,代码为【export default {data() {return {info: {width: 100}}}】。本教程 *** 作环境:windows7系