diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index c1c12eded..5b8bf432e 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -2,7 +2,7 @@
-
{{ $t('global.mapList') }}
+
线路列表
@@ -10,7 +10,7 @@
{ this.mapList = resp.data; + if (this.mapList && this.mapList.length && this.$route.path.includes('simulation/simulationIndex')) { + const map = this.mapList[0]; + const path = `/trainingPlatform/simulation/${map.id}?lineCode=${map.lineCode}`; + this.defaultIndex = path; + this.$router.push(path); + } this.loading = false; }).catch(e => { this.loading = false; diff --git a/src/views/trainingPlatform/simulation.vue b/src/views/trainingPlatform/simulation.vue index 05efbe476..9bd740ea3 100644 --- a/src/views/trainingPlatform/simulation.vue +++ b/src/views/trainingPlatform/simulation.vue @@ -1,6 +1,6 @@