From b672420c5735f233e75a97bc14a15a1add49c472 Mon Sep 17 00:00:00 2001 From: XLor Date: Tue, 5 Mar 2024 16:23:13 +0800 Subject: [PATCH] feat: move current city first --- components/City.vue | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/components/City.vue b/components/City.vue index 734c6ef..f8b7a4e 100644 --- a/components/City.vue +++ b/components/City.vue @@ -24,6 +24,8 @@ import CreateLog from './CreateLog.vue'; const props = defineProps<{ city: CityInfo }>(); +const currentCity = props.city; + const timestamp = useTimestamp({ interval: 10 * 1000 }); const store = useLatestLogs(); @@ -37,16 +39,28 @@ const store = useLatestLogs(); - 商品{{ city.name }}{{ currentCity.name }}{{ city.name }}操作 {{ product.name }} - +