Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
9个月前关闭。
我创建了一个复制示例here。
如您所见,图例已渲染,但图形未渲染。是什么原因导致这种不良行为?
至:
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
9个月前关闭。
我创建了一个复制示例here。
如您所见,图例已渲染,但图形未渲染。是什么原因导致这种不良行为?
最佳答案
传递给dataStatusWa
的参数的顺序相反。
尝试更改(在App.vue中):
dataStatusWa() {
return dataStatusWa(this.getStatusWa, this.getStatusWaLabel);
}
至:
dataStatusWa() {
return dataStatusWa(this.getStatusWaLabel, this.getStatusWa);
}