|
|
|
@ -384,6 +384,10 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initChart() { |
|
|
|
getKeywordsByKeyword(this.getpoinName).then(res=>{ |
|
|
|
this.words = res |
|
|
|
|
|
|
|
|
|
|
|
// 如果已存在实例,先销毁 |
|
|
|
if (this.chart) { |
|
|
|
this.chart.dispose() |
|
|
|
@ -430,11 +434,9 @@ export default { |
|
|
|
], |
|
|
|
backgroundColor: 'rgba(255, 255, 255, 0.21)' |
|
|
|
} |
|
|
|
|
|
|
|
getKeywordsByKeyword(this.getpoinName).then(res=>{ |
|
|
|
this.words = res |
|
|
|
}) |
|
|
|
this.chart.setOption(option) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
randomColor() { |
|
|
|
return `hsl(${Math.random() * 360}, 70%, 50%)` |
|
|
|
|