diff --git a/src/components/Discover/Map/SidebarView.vue b/src/components/Discover/Map/SidebarView.vue index 13ac788..b157adb 100644 --- a/src/components/Discover/Map/SidebarView.vue +++ b/src/components/Discover/Map/SidebarView.vue @@ -98,17 +98,14 @@ export default { ], curveStyle:'unbundled-bezier', // unbundled-bezier | taxi mapType: 'processMap', // processMap | bpmn - dataLayerType: 'freq', // freq | duration - dataLayerOption: 'total', + dataLayerType: null, // freq | duration + dataLayerOption: null, selectedFreq: '', selectedDuration: '', rank: 'LR', // 直向 TB | 橫向 LR } }, methods: { - ttt(e){ - console.log(e); - }, /** * switch map type * @param {string} type processMap | bpmn @@ -156,10 +153,12 @@ export default { this.selectedDuration = value; break; } - console.log(type, value); this.$emit('switch-data-layer-type', this.dataLayerType, this.dataLayerOption); }, + }, + mounted() { + this.dataLayerType = 'freq'; + this.dataLayerOption = 'total'; } - }