Commit a4cec5fb11b86fff45f7ff752ae99bfa09d33525
1 parent
57b54283
fix: map component disabled select history data on preview mode
Showing
1 changed file
with
7 additions
and
2 deletions
| ... | ... | @@ -216,10 +216,15 @@ |
| 216 | 216 | <template> |
| 217 | 217 | <div class="w-full h-full flex justify-center items-center flex-col p-2"> |
| 218 | 218 | <div |
| 219 | - class="w-full flex" | |
| 219 | + class="w-full flex justify-end" | |
| 220 | 220 | v-if="props.layout?.componentType === FrontComponent.MAP_COMPONENT_TRACK_HISTORY" |
| 221 | 221 | > |
| 222 | - <Button type="text" class="!px-2 flex-auto !text-left truncate" @click="handleTrackSwitch"> | |
| 222 | + <Button | |
| 223 | + v-if="!random" | |
| 224 | + type="text" | |
| 225 | + class="!px-2 flex-auto !text-left truncate" | |
| 226 | + @click="handleTrackSwitch" | |
| 227 | + > | |
| 223 | 228 | <div class="w-full truncate text-gray-500 flex items-center"> |
| 224 | 229 | <ClockCircleOutlined /> |
| 225 | 230 | <span class="mx-1">历史</span> | ... | ... |