fix: 手机端关闭侧边栏后刷新页面的延迟300ms=>350ms,instrumentation.ts好像得写在src内部以适配生产环境,

新增simple_deploy.sh便于部署
This commit is contained in:
2025-11-18 20:32:28 +08:00
parent 2a80a44972
commit 91d39b3145
6 changed files with 76 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ export function AppSidebar({ menuItems, ...props }: AppSidebarProps) {
// 等待侧边栏关闭动画完成后再导航
setTimeout(() => {
router.push(href)
}, 300)
}, 350)
}
}, [isMobile, setOpenMobile, router])

View File

@@ -3,4 +3,4 @@
*/
export const SITE_NAME = 'Hair Keeper'
export const SITE_DESCRIPTION = '高度集成、深度定制、约定优于配置的全栈Web应用模板旨在保持灵活性的同时提供一套基于成熟架构的开发底座自带身份认证、权限控制、丰富前端组件、文件上传、后台任务、智能体开发等丰富功能提供AI开发辅助免于纠结功能如何实现可快速上手专注于业务逻辑'
export const SITE_VERSION = 'v1.0.0'
export const SITE_VERSION = 'v1.1.0'

17
src/instrumentation.ts Normal file
View File

@@ -0,0 +1,17 @@
// 这里的代码只会在服务器启动时执行一次
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
// 初始化定时任务
const { initCronJobs } = await import('@/server/cron')
await initCronJobs()
if (process.env.NODE_ENV === 'development') {
const { startTerminalService } = await import('@/server/service/dev/terminal');
startTerminalService() // 开发环境下启动一个基于ttyd可嵌入在网页上的终端服务
}
} else {
}
}