mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-12 04:12:10 +00:00
- 新增文件上传下载服务及API接口 - 重构用户认证模块,支持验证码登录 - 优化.env配置文件结构 - 更新前端API请求工具和类型定义 - 添加工作台菜单项 - 修复用户登出逻辑 - 统一API响应数据结构
37 lines
698 B
Vue
37 lines
698 B
Vue
<script lang="ts" setup>
|
|
import { useTheme } from "@/composables/useTheme";
|
|
|
|
const { theme, themeVars } = useTheme();
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
export default {
|
|
options: {
|
|
addGlobalClass: true,
|
|
virtualHost: true,
|
|
styleIsolation: "shared",
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<wd-config-provider :theme-vars="themeVars" :theme="theme" :custom-class="`page-wraper ${theme}`">
|
|
<slot />
|
|
<wd-notify />
|
|
<wd-toast />
|
|
<wd-message-box />
|
|
</wd-config-provider>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.page-wraper {
|
|
box-sizing: border-box;
|
|
min-height: calc(100vh - var(--window-top));
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
.wot-theme-dark.page-wraper {
|
|
background: #222;
|
|
}
|
|
</style>
|