20 lines
412 B
Vue
20 lines
412 B
Vue
<script setup>
|
|
import { onMounted } from 'vue'
|
|
|
|
import { useRoute } from 'vue-router'
|
|
import BaseLayout from './layout/base-layout/index.vue'
|
|
import { useUserStore } from './stores/userStore'
|
|
|
|
const route = useRoute()
|
|
const userStore = useUserStore()
|
|
|
|
onMounted(() => {
|
|
userStore.initPermission()
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<BaseLayout v-if="route.fullPath !== '/login'" />
|
|
<RouterView v-else />
|
|
</template>
|