Files
iot-device-management-frontend/apps/web-antd/src/preferences.ts
lzh 7b429d1ffd 配置: 默认首页切换到 /iot/home,下线旧 Dashboard 与设备分布地图
- preferences.ts: 覆盖框架默认的 defaultHomePath: '/analytics' 为 '/iot/home',
  登录后直接进入 IoT 概览页。
- router/routes/modules/dashboard.ts: 删除 Dashboard/Workspace/Analytics 路由
  (不再作为菜单项暴露),仅保留 Profile。
- views/iot/home/index.vue: 移除 DeviceMapCard(依赖的后端
  /admin-api/iot/device/location-list 接口尚未就绪,避免无效请求)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:40:03 +08:00

28 lines
888 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineOverridesPreferences } from '@vben/preferences';
/**
* @description 项目配置文件
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
* !!! 更改配置后请清空缓存,否则可能不生效
*/
export const overridesPreferences = defineOverridesPreferences({
// overrides
app: {
/** 后端路由模式 */
accessMode: 'backend',
name: import.meta.env.VITE_APP_TITLE,
enableRefreshToken: true,
/** 首页路径:默认跳转到 IoT 首页(覆盖框架默认的 /analytics */
defaultHomePath: '/iot/home',
},
footer: {
/** 默认关闭 footer 页脚,因为有一定遮挡 */
enable: false,
fixed: false,
},
copyright: {
companyName: import.meta.env.VITE_APP_TITLE,
companySiteLink: 'https://gitee.com/yudaocode/yudao-ui-admin-vben',
},
});