sonar low

This commit is contained in:
Cindy Chang
2024-07-26 10:48:38 +08:00
parent 2ca4fdd0c6
commit a5f271ccc8
7 changed files with 6 additions and 10 deletions

View File

@@ -141,13 +141,13 @@ export default {
if(e.target.value !== 'freq' && e.target.value !== 'duration') value = e.target.value;
switch (type) {
case 'freq':
value = value ? value : this.selectedFreq ? this.selectedFreq : 'total';
value = value || this.selectedFreq || 'total';
this.dataLayerType = type;
this.dataLayerOption = value;
this.selectedFreq = value;
break;
case 'duration':
value = value ? value : this.selectedDuration ? this.selectedDuration : 'total';
value = value || this.selectedDuration || 'total';
this.dataLayerType = type;
this.dataLayerOption = value;
this.selectedDuration = value;