-
-
{{ item }}
+
+
{{ switchLanguage(item, 'title') }}
@@ -47,7 +47,20 @@ import ScrollView from '@/base/ScrollView/ScrollView.vue'
const CarInfo = defineAsyncComponent(() => import('@/components/CarInfo/CarInfo.vue'))
const Traffic = defineAsyncComponent(() => import('@/components/Traffic/Traffic.vue'))
-const tabs = ['车牌号找车', '车位号找车', '周边交通'] as const
+const tabs = [
+ {
+ title: '车牌号寻车',
+ titleEn: 'License Plate Number'
+ },
+ {
+ title: '车位号找车',
+ titleEn: 'Parking Lot Number'
+ },
+ {
+ title: '周边交通',
+ titleEn: 'Surrounding Transportation'
+ }
+] as const
const tabIdx = ref(0)
function handleTab(index: number) {
tabIdx.value = index
@@ -77,14 +90,15 @@ getParkingInfo().then(({ data }) => {