配置: 默认首页切换到 /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:
@@ -11,7 +11,6 @@ import { getStatisticsSummary } from '#/api/iot/statistics';
|
||||
|
||||
import { defaultStatsData } from './data';
|
||||
import DeviceCountCard from './modules/device-count-card.vue';
|
||||
import DeviceMapCard from './modules/device-map-card.vue';
|
||||
import DeviceStateCountCard from './modules/device-state-count-card.vue';
|
||||
import MessageTrendCard from './modules/message-trend-card.vue';
|
||||
|
||||
@@ -103,12 +102,5 @@ onMounted(() => {
|
||||
<MessageTrendCard />
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<!-- 第四行:设备分布地图 -->
|
||||
<Row :gutter="16">
|
||||
<Col :span="24">
|
||||
<DeviceMapCard />
|
||||
</Col>
|
||||
</Row>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user