feat(ui): Browser-Titel "Mini-Cloud - <username>" + Wolken-Favicon
Titel reagiert reaktiv auf Login/Logout. Favicon ist die Wolke aus der Sidebar (pi-cloud-Style). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { watchEffect } from 'vue'
|
||||
import { useAuthStore } from './stores/auth'
|
||||
|
||||
const auth = useAuthStore()
|
||||
|
||||
watchEffect(() => {
|
||||
document.title = auth.user?.username
|
||||
? `Mini-Cloud - ${auth.user.username}`
|
||||
: 'Mini-Cloud'
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user