diff --git a/src/views/home.vue b/src/views/home.vue index b62e796..86eb775 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -829,7 +829,7 @@ export default { }, async calculateShortestPath() { if (!this.pointQD || !this.pointZD || !this.roadNetworkGeoJSON) { - alert('请先加载路网数据并绘制障碍面、起点和终点!') + this.$message.warning('请先加载路网数据并绘制障碍面、起点和终点!') return } this.shortestPathLayer.clear()