开发记事
1、vue页面点击事件ios监听不到
解决方法:将@click改为v-on:click
2、日期选择后,选择框一直loading
解决方法:将rules校验的数据格式改为string即可
3、在webstorm中使用SSH克隆代码到本地时,报错Please make sure you have the correct access rights and the repository exists。
解决方法:将C盘-用户-.ssh下的所有文件删除,重新生成公钥,再进行克隆
原文链接:http://www.ryxxff.com/128228.html
4、ant-design-vue中props传值时,table所在的组件报错并不渲染
解决方法:table的row-selection属性不显示时,赋值为null
5、使用query路由传参时,页面报错(Uncaught Error : [$rootScope:infdig] 10 $digest() iterations reached.Aborting!Watchers fired in the last 5 iterations:[])并卡死
解决方法:将参数使用Base64转码
6、使用Export2Excel.js导出表格数据时,页面报错cannot read property ‘encode_cell’ of undefined
解决方法:在Export2Excel.js中引入XLSX
7、数据改变后,页面没有重新渲染
解决方法:使用强制执行方法–this.$forceUpdate()
8、Chrome正常渲染,IE浏览器报错:[Vue warn]: Error in render: "TypeError: 对象不支持entries属性或方法
解决方法:安装插件babel-polyfill,在main.js中引入