Files
bidding_watcher/ionic-app/src/App.vue

32 lines
606 B
Vue
Raw Normal View History

<script setup lang="ts">
import { IonApp, IonRouterOutlet } from '@ionic/vue'
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}`
}
})
</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>