mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
refactor: 重构维护模式相关逻辑,拆分维护说明与详情
- 拆分维护接口类型,新增notice和description字段区分纯文本说明与富文本详情 - 重构useMaintenanceIntercept钩子,统一维护拦截逻辑 - 新增维护详情弹窗组件,优化维护页UI与交互 - 修复按钮布局、滚动置顶黑名单等细节问题 - 优化公告弹窗组件样式与代码结构
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import type { DataLoadingStatus } from './useDataLoading'
|
||||
|
||||
/**
|
||||
* @deprecated 请改用 useDataLoading:状态由 hook 内部流转,
|
||||
* 无需再在 try/catch 里手工调用 updateLoadingStatus 搬运状态。
|
||||
* 本文件保留仅为兼容存量页面(category/article-detail 等),后续逐步迁移。
|
||||
*/
|
||||
export const DataLoadingStatusEnum = {
|
||||
Loading: 'loading',
|
||||
Error: 'error',
|
||||
Empty: 'empty',
|
||||
Success: 'success',
|
||||
NoNetwork: 'noNetwork',
|
||||
} as const
|
||||
|
||||
export function useDataLoadingStatus(status?: DataLoadingStatus) {
|
||||
|
||||
Reference in New Issue
Block a user