Merge remote-tracking branch 'origin/develop' into local-test
All checks were successful
local-test分支构建发布到本地服务器 / Build-Publish (push) Successful in 10m29s

This commit is contained in:
joylink_fanyuhong 2024-09-11 13:45:09 +08:00
commit a3afdc027d

View File

@ -58,9 +58,10 @@ export default {
},
methods: {
initLoadPage() {
const trainingType = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingType : '';
let trainingType = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingType : '';
trainingType = trainingType ? trainingType.toLowerCase() : null;
// labels: ['', '']
const data = {mapId: this.mapId, type: trainingType.toLowerCase()};
const data = {mapId: this.mapId, type: trainingType};
if (this.$route.query.labels) {
const labels = this.$route.query.labels.split('-');
const labelMap = { loc: '现地', dis: '行调', section: '区段', signal: '信号机', switch: '道岔', stand: '站台', station: '车站', control: '控制权' };