|
|
|
@@ -846,6 +846,7 @@ export default { |
|
|
|
title.textContent = title.textContent.split('^')[0]; |
|
|
|
} |
|
|
|
}); |
|
|
|
d3.selectAll('g.edge>title').remove(); |
|
|
|
// The graph generated by the plug-in has a useless title and needs to be deleted. |
|
|
|
document.querySelector('#graph g#graph0 title').remove(); |
|
|
|
this.initGraphRectData(); |
|
|
|
@@ -969,10 +970,20 @@ export default { |
|
|
|
this.loading.show = false; |
|
|
|
}, |
|
|
|
) |
|
|
|
.catch(() => { |
|
|
|
.catch((error) => { |
|
|
|
// A non-Google Chrome browser may not work properly. |
|
|
|
this.loading.show = false; |
|
|
|
this.$bus.$emit('showWarmText', true); |
|
|
|
if (error.includes('larger than maximum 65535 allowed')) { |
|
|
|
this.$message.error(this.$t('graph.dataTooLarge')); |
|
|
|
} else { |
|
|
|
this.$bus.$emit('showWarmText', true); |
|
|
|
} |
|
|
|
if (name && this.allGraphData[name]) { |
|
|
|
this.allGraphData[name].isUnfold = false; |
|
|
|
this.allGraphData[name].children = []; |
|
|
|
this.allGraphData[name].size = []; |
|
|
|
this.allGraphData[name].html = ''; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, 50); |
|
|
|
}, |
|
|
|
|