perf:home page

This commit is contained in:
ktianc 2023-07-16 21:47:50 +08:00
parent a6e17c2dae
commit cdbbf89154
6 changed files with 25 additions and 6 deletions

View File

@ -124,7 +124,7 @@ const mobile = appStore.getMobile
</draggable> </draggable>
</ElScrollbar> </ElScrollbar>
<template #reference> <template #reference>
<ElButton link :icon="settings">{{ mobile ? '' : '字段设置' }}</ElButton> <ElButton link :icon="settings">{{ mobile ? '' : '字段显隐' }}</ElButton>
</template> </template>
</ElPopover> </ElPopover>
</ElCol> </ElCol>

View File

@ -29,7 +29,7 @@ const loginOut = () => {
} }
const toHome = () => { const toHome = () => {
push('/system/home') push('/home')
} }
const toGitee = () => { const toGitee = () => {

View File

@ -16,7 +16,25 @@ export const constantRouterMap: AppRouteRecordRaw[] = [
hidden: true, hidden: true,
title: '首页', title: '首页',
noTagsView: true noTagsView: true
} },
children: [
{
path: 'home',
name: 'Home',
component: () => import('@/views/Home/Home.vue'),
meta: {
affix: false,
alwaysShow: true,
breadcrumb: true,
canTo: true,
hidden: true,
icon: null,
noCache: true,
noTagsView: false,
title: '个人主页'
}
}
]
}, },
{ {
path: '/login', path: '/login',
@ -93,6 +111,7 @@ const router = createRouter({
export const resetRouter = (): void => { export const resetRouter = (): void => {
const resetWhiteNameList = [ const resetWhiteNameList = [
'Home',
'Login', 'Login',
'NoFind', 'NoFind',
'Root', 'Root',

View File

@ -11,7 +11,7 @@ from fastapi.security import OAuth2PasswordBearer
""" """
系统版本 系统版本
""" """
VERSION = "1.9.2" VERSION = "1.9.3"
"""安全警告: 不要在生产中打开调试运行!""" """安全警告: 不要在生产中打开调试运行!"""
DEBUG = True DEBUG = True

View File

@ -128,7 +128,7 @@ class SettingsTabDal(DalBase):
def __init__(self, db: AsyncSession): def __init__(self, db: AsyncSession):
super(SettingsTabDal, self).__init__(db, models.VadminSystemSettingsTab, schemas.SettingsTabSimpleOut) super(SettingsTabDal, self).__init__(db, models.VadminSystemSettingsTab, schemas.SettingsTabSimpleOut)
async def get_classify_tab_values(self, classify: List[str], hidden: Union[bool, None] = False): async def get_classify_tab_values(self, classify: List[str], hidden: bool | None = False):
""" """
获取系统配置分类下的标签信息 获取系统配置分类下的标签信息
""" """
@ -144,7 +144,7 @@ class SettingsTabDal(DalBase):
) )
return self.__generate_values(datas) return self.__generate_values(datas)
async def get_tab_name_values(self, tab_names: List[str], hidden: Union[bool, None] = False): async def get_tab_name_values(self, tab_names: List[str], hidden: bool | None = False):
""" """
获取系统配置标签下的标签信息 获取系统配置标签下的标签信息
""" """