Some checks failed
continuous-integration/drone/push Build is failing
- Add Vue 3 frontend with Element Plus - Implement login, dashboard, tenant management - Add app configuration, logs viewer, stats pages - Add user management for admins - Update Drone CI to build and deploy frontend - Frontend ports: 3001 (test), 4001 (prod)
24 lines
359 B
Vue
24 lines
359 B
Vue
<script setup>
|
|
import { useAuthStore } from '@/stores/auth'
|
|
import { onMounted } from 'vue'
|
|
|
|
const authStore = useAuthStore()
|
|
|
|
onMounted(() => {
|
|
// 恢复登录状态
|
|
authStore.initFromStorage()
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<router-view />
|
|
</template>
|
|
|
|
<style>
|
|
html, body, #app {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|