vue、vuex、iview、vue-router报错集锦与爬坑记录

1、vue报错: 没安装 less-loader css-loader style-loader     

  可能的很大原因:没安装less

2、vuex报错:Computed property "xxx" was assigned to but it has no setter

  在使用了vuex的情况下,state时导入的state,在页面中不能直接更改state的值,需要在mutation方法中更改,然后在vue组件中commit该方法

3、iview报错:iview出现col栅格提示文字向上浮动时候

  说明有可能忘记写外层的row了。

vue不能在单个组件中style没有用scoped前提下,定义可能会覆盖全局的样式,因为一定会覆盖!

原文地址:https://www.cnblogs.com/beileixinqing/p/7794364.html