[Vue-warn]:Unknown custom element: - did you register the component correctiy?`
2. 子组件试图直接更改父组件
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "value"`
[Vue warn]: Property or method "name" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. (found in )
4. 取多级数据值
例如: movie_data.subject_collection.name
[Vue warn]: Error in render function: “TypeError: Cannot read property ‘name’ of undefined”
[Vue warn]: Error in nextTick: "NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node."
常见 warning
1. 组件注册不正确
2. 子组件试图直接更改父组件
注意在 JavaScript 中对象和数组是通过引用传入的,所以对于一个数组或对象类型的 prop 来说,在子组件中改变变更这个对象或数组本身将会影响到父组件的状态。
这里有两种常见的试图变更一个 prop 的情形:
.sync
语法糖来实现, 在 vuex 中可以使用 computed 自定义 get、set 钩子来实现。3. 引用一个不存在的变量
4. 取多级数据值
例如: movie_data.subject_collection.name
5.无法在'Node'上执行'insertBefore':要在其之前插入新节点的节点不是该节点的子节点
Fix:
v-show="scope.row.status === '1' && checkPermission(['/prtOrder/Abolition'])"
处理异常
参考