u
This commit is contained in:
1 parent
c330e52fd3
commit
87d63b6542
341 files changed
+128714
-48
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user