报错解决
记录日常报错及处理
zioMo
这个作者很懒,什么都没留下…
展开
-
解决el-table缩放表格错位对不齐
doLayout方法解决el-table错位完整代码给table加refmounted钩子中监听窗口缩放事件methods中定义处理函数组件销毁阶段移除事件监听完整代码 mounted() { window.addEventListener('resize', this.handleResize) }, methods() { handleResize() { this.$nextTick(() => { this.$refs.table.doLayout() })原创 2021-10-25 18:37:14 · 1708 阅读 · 1 评论 -
node-sass安装报错 not found: python2 --- Python executable “python2“ in the PATH
报错截图关键点npm ERR! gyp verb check python checking for Python executable "python2" in the PATHnpm ERR! gyp verb `which` failed Error: not found: python2**解决问题**python版本问题导致的如果电脑上有python2.x只需要执行以下命令npm install node-sass--python=python2.7或者 npm ins原创 2021-09-17 23:56:45 · 3906 阅读 · 0 评论