mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-28 06:57:54 +00:00
feat: 更新开发环境配置和部署脚本优化
- 将前端API基础URL切换为本地开发环境 - 登录表单添加默认测试账号 - 主题存储默认设置为暗色模式 - 添加用户信息到请求上下文 - 调整LOGO和登录页面样式 - 更新演示环境白名单和权限控制 - 优化部署脚本流程和日志输出 - 清理未使用的组件类型声明
This commit is contained in:
@@ -141,8 +141,8 @@ const isCapsLock = ref(false);
|
||||
|
||||
|
||||
const loginForm = reactive<LoginFormData>({
|
||||
username: "",
|
||||
password: "",
|
||||
username: "admin",
|
||||
password: "123456",
|
||||
captcha: "",
|
||||
captcha_key: "",
|
||||
remember: true,
|
||||
|
||||
@@ -21,19 +21,19 @@
|
||||
<div w-full flex flex-col items-center>
|
||||
<!-- logo -->
|
||||
<!-- <el-image :src="logo" style="width: 84px" /> -->
|
||||
<el-image :src="configStore.configData.sys_web_logo.config_value" style="width: 84px" />
|
||||
<el-image :src="configStore.configData.sys_web_logo.config_value" style="width: 140px" />
|
||||
|
||||
<!-- 标题 -->
|
||||
<!-- 添加小图标用于显示提示信息 -->
|
||||
<div class="flex items-center justify-center">
|
||||
<div class="flex items-center justify-center mb-4">
|
||||
<el-tooltip :content="configStore.configData.sys_web_description.config_value" placement="bottom">
|
||||
<el-icon class="cursor-help"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
<h2 class="ml-2">
|
||||
<div class="ml-2 text-xl font-bold">
|
||||
<el-badge :value="`v ${configStore.configData.sys_web_version.config_value}`" type="success">
|
||||
{{ configStore.configData.sys_web_title.config_value }}
|
||||
</el-badge>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 组件切换 -->
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 表格区域 -->
|
||||
<el-table ref="dataTableRef" v-loading="loading" :data="pageTableData" highlight-current-row class="data-table__content" height="450" border stripe @selection-change="handleSelectionChange">
|
||||
<el-table ref="dataTableRef" v-loading="loading" :data="pageTableData.filter(item => item.username !== 'superadmin')" highlight-current-row class="data-table__content" height="450" border stripe @selection-change="handleSelectionChange">
|
||||
<template #empty>
|
||||
<el-empty :image-size="80" description="暂无数据" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user