2026-03-25 10:02:19 +08:00
|
|
|
<script setup lang="ts">
|
2026-03-27 14:50:35 +08:00
|
|
|
import { computed } from "vue";
|
|
|
|
|
import { AppMain, Navbar } from "./components/index";
|
2026-03-25 10:02:19 +08:00
|
|
|
|
2026-03-27 14:50:35 +08:00
|
|
|
import { useAppStore } from "@/store/modules/app";
|
2026-03-25 10:02:19 +08:00
|
|
|
|
|
|
|
|
const appStore = useAppStore();
|
|
|
|
|
|
|
|
|
|
const classObj = computed(() => ({
|
|
|
|
|
withoutAnimation: appStore.sidebar.withoutAnimation,
|
|
|
|
|
}));
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div :class="classObj" class="app-wrapper">
|
2026-03-27 14:50:35 +08:00
|
|
|
<navbar />
|
|
|
|
|
<div class="main-container">
|
2026-03-25 10:02:19 +08:00
|
|
|
<!--主页面-->
|
|
|
|
|
<app-main />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@use '@/styles/mixin.scss' as mixin;
|
|
|
|
|
|
|
|
|
|
.app-wrapper {
|
|
|
|
|
// @include clearfix;
|
|
|
|
|
position: relative;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2026-03-27 14:50:35 +08:00
|
|
|
</style>
|