vue.common.js?e881:433 TypeError: Cannot read property 'nodeName' of undefined

vue.common.js?e881:433 TypeError: Cannot read property 'nodeName' of undefined

我觉得吧,是这么个原因,就是响应式要找这个node改它的内容,没找着,就报错了。

用computed监控vuex的state属性,绑定到页面上,如果这个属性改了,因为响应式,那么就要更改页面,如果页面不是当前页面,那么就会出现vue.common.js?e881:433 TypeError: Cannot read property 'nodeName' of undefined这样的报错。。。。。

但是vue.common.js里写

// Sort queue before flush.
// This ensures that:
// 1. Components are updated from parent to child. (because parent is always
// created before the child)
// 2. A component's user watchers are run before its render watcher (because
// user watchers are created before the render watcher)
// 3. If a component is destroyed during a parent component's watcher run,
// its watchers can be skipped.

后来找到了,是echarts报的错,因为切走了,找不到初始化的那个占位,在app.js里的提示实在不清楚不好定位错误