2026-01-18 18:53:35 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { IonApp, IonRouterOutlet } from '@ionic/vue'
|
2026-01-18 19:08:04 +08:00
|
|
|
import { onMounted } from 'vue'
|
|
|
|
|
|
|
|
|
|
const apiHost = import.meta.env.VITE_API_BASE_URL || 'http://localhost:3001'
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
const footer = document.getElementById('api-footer')
|
|
|
|
|
if (footer) {
|
|
|
|
|
footer.textContent = `连接: ${apiHost}`
|
|
|
|
|
}
|
|
|
|
|
})
|
2026-01-18 18:53:35 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<IonApp>
|
|
|
|
|
<IonRouterOutlet />
|
|
|
|
|
</IonApp>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
* {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
|
|
|
}
|
|
|
|
|
</style>
|