
我覺得吧,是這么個原因,就是響應式要找這個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里的提示實在不清楚不好定位錯誤
