- 新增locate页,用于地图跳转 - 调整about页卡片布局
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
<learn-more-card
|
||||
:title="$t('navigation.address')"
|
||||
:icon="ElIconMapLocation"
|
||||
:href="getAutoMappedService"
|
||||
:to="$localePath('/locate?lng=120.123&lat=30.231&name=xxx')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -95,4 +95,12 @@
|
||||
align-items: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.button-group {
|
||||
align-items: center;
|
||||
margin-left: 0;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
12
app/pages/locate.vue
Normal file
12
app/pages/locate.vue
Normal file
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div>redirecting...</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
onMounted(async () => {
|
||||
const platform = await getAutoMappedService();
|
||||
|
||||
// // ✔ 移动端能正常跳转
|
||||
window.location.href = platform;
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user