mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 新增BasicLayout布局
This commit is contained in:
14
src/layouts/common/GlobalContent/index.vue
Normal file
14
src/layouts/common/GlobalContent/index.vue
Normal file
@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<router-view v-slot="{ Component }">
|
||||
<transition name="fade-slide" mode="out-in" appear>
|
||||
<component :is="Component" v-if="app.reloadFlag" />
|
||||
</transition>
|
||||
</router-view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useAppStore } from '@/store';
|
||||
|
||||
const app = useAppStore();
|
||||
</script>
|
||||
<style scoped></style>
|
3
src/layouts/common/index.ts
Normal file
3
src/layouts/common/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import GlobalContent from './GlobalContent/index.vue';
|
||||
|
||||
export { GlobalContent };
|
Reference in New Issue
Block a user