diff --git a/src/views/tag/index.vue b/src/views/tag/index.vue index b2efef7..2a2cca4 100644 --- a/src/views/tag/index.vue +++ b/src/views/tag/index.vue @@ -55,7 +55,7 @@ placeholder="选择时间范围" v-model="queryForm.data.timeRange" type="daterange" - range-separator="~" + :range-separator="queryForm.data.timeRange.length === 0 ? null : '~'" :editable="false" :clearable="false" value-format="yyyy-MM-dd"