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里的提示實在不清楚不好定位錯誤

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM