wireguard-dashboard-admin/src/App.vue

26 lines
566 B
Vue
Raw Normal View History

2022-01-08 17:20:46 +08:00
<script setup>
import AppProvider from '@/components/AppProvider/index.vue'
</script>
<template>
<router-view>
<template #default="{ Component, route }">
<app-provider>
<keep-alive v-if="route.meta && route.meta.keepAlive">
<component :is="Component" :key="route.fullPath" />
</keep-alive>
<component :is="Component" v-else :key="route.fullPath" />
</app-provider>
</template>
</router-view>
</template>
<style lang="scss">
#app {
height: 100%;
.n-config-provider {
height: inherit;
}
}
</style>