配置: 默认首页切换到 /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>
This commit is contained in:
@@ -12,6 +12,8 @@ export const overridesPreferences = defineOverridesPreferences({
|
||||
accessMode: 'backend',
|
||||
name: import.meta.env.VITE_APP_TITLE,
|
||||
enableRefreshToken: true,
|
||||
/** 首页路径:默认跳转到 IoT 首页(覆盖框架默认的 /analytics) */
|
||||
defaultHomePath: '/iot/home',
|
||||
},
|
||||
footer: {
|
||||
/** 默认关闭 footer 页脚,因为有一定遮挡 */
|
||||
|
||||
Reference in New Issue
Block a user