Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly1
This commit is contained in:
commit
81811cb0db
@ -186,7 +186,6 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await loadPublishTraining(this.group, training.id, {mode: ''});
|
|
||||||
const detailResp = await getPublishTrainingDetail(training.id);
|
const detailResp = await getPublishTrainingDetail(training.id);
|
||||||
this.training = detailResp.data;
|
this.training = detailResp.data;
|
||||||
if (detailResp.data.mapLocationJson) {
|
if (detailResp.data.mapLocationJson) {
|
||||||
@ -194,6 +193,7 @@ export default {
|
|||||||
this.$jlmap.updateTransform(mapLocation.scale, {x:mapLocation.x, y:mapLocation.y});
|
this.$jlmap.updateTransform(mapLocation.scale, {x:mapLocation.x, y:mapLocation.y});
|
||||||
}
|
}
|
||||||
this.$store.dispatch('trainingNew/setTrainingDetail', detailResp.data);
|
this.$store.dispatch('trainingNew/setTrainingDetail', detailResp.data);
|
||||||
|
await loadPublishTraining(this.group, training.id, {mode: ''});
|
||||||
this.$message.success('加载实训成功!');
|
this.$message.success('加载实训成功!');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e, '-----------');
|
console.error(e, '-----------');
|
||||||
|
Loading…
Reference in New Issue
Block a user