const container = this.$refs.container
const treeContainer = this.$refs.treeContainer
const graph = new G6.TreeGraph({
container,
width: treeContainer.scrollWidth || 800,
height: treeContainer.scrollHeight || 800,
容器一定要是这个!!!!