调整showMode初始值

This commit is contained in:
fan 2021-01-20 16:47:20 +08:00
parent 287e6251b7
commit 295ddee738

View File

@ -240,6 +240,10 @@ export default {
this.previewOrMapDraw = true;
}
const prdType = this.$store.state.training.prdType;
let showMode = '';
if (prdType === '01') {
showMode = '03';
} else if (prdType === '02') { showMode = '02'; }
Vue.prototype.$theme = new Theme();
Vue.prototype.$jlmap = new Jlmap({
dom: document.getElementById(this.canvasId),
@ -257,7 +261,7 @@ export default {
showConfig: {
prdType: prdType,
previewOrMapDraw: this.previewOrMapDraw,
showMode: '02'
showMode: showMode
},
methods: {
dataLoaded: this.handleDataLoaded,