接入前端登录权限底座
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
<template>
|
||||
<ReservationAppShell>
|
||||
<RouterView v-if="plainLayout" />
|
||||
<ReservationAppShell v-else>
|
||||
<RouterView />
|
||||
</ReservationAppShell>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from 'vue-router'
|
||||
import { computed } from 'vue'
|
||||
import { RouterView, useRoute } from 'vue-router'
|
||||
|
||||
import ReservationAppShell from '@/layouts/ReservationAppShell.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const plainLayout = computed(() => route.meta.layout === 'plain')
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user