problem:
echarts tree diagram node custom picture first loads are not displayed , click it can be displayed
I thought this was the picture pre-loaded questions, engage in a long time with no eggs.
Because before the listening window to change events, suddenly found to change the screen size, the picture will be displayed.
Since then the display screen can be changed, then let him change! You can take to avoid this bug tree view
Solution:
After the first call to manually load chart once resize () to change the size chart method
Below mentioned two kinds of images pre-loaded method:
1, directly introduced into the picture as a module
require imgUrl from "../assets/test.png"
2, on the data in the imgUrl
data(){
return {
imgUrl: require("../assets/test.png")
}
}