From 8cc266d9b0804043d02f7d7cf145359adca84139 Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Thu, 11 Sep 2025 14:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/home/types.ts | 2 +- src/router/index.ts | 2 +- src/views/index.vue | 161 +++++++++++++++++++++++++++++++++++------- 4 files changed, 139 insertions(+), 30 deletions(-) diff --git a/.env.development b/.env.development index 5642af4..de23cf7 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VITE_APP_TITLE = 云平台管理系统 VITE_APP_ENV = 'development' # 开发环境 -# VITE_APP_BASE_API = 'http://47.120.79.150/backend' -VITE_APP_BASE_API = 'http://192.168.2.23:8000' +VITE_APP_BASE_API = 'http://47.120.79.150/backend' +#VITE_APP_BASE_API = 'http://192.168.2.23:8000' # VITE_APP_BASE_API = 'http://localhost:8000' diff --git a/src/api/home/types.ts b/src/api/home/types.ts index 1ae8f5d..69cdccf 100644 --- a/src/api/home/types.ts +++ b/src/api/home/types.ts @@ -1,6 +1,6 @@ export interface DataOverviewType { devicesNumber: number | string; equipmentOnline: number | string; - bindingNew: number | string; + binding: number | string; equipmentAbnormal: number | string; } \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 0ba6e62..af4e1a8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -48,7 +48,7 @@ export const constantRoutes: RouteRecordRaw[] = [ path: '/index', component: () => import('@/views/index.vue'), name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } + meta: { title: '首页', icon: 'dashboard', affix: true,keepAlive: false } } ] }, diff --git a/src/views/index.vue b/src/views/index.vue index 04cae75..de82d32 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -13,8 +13,8 @@
在线设备
-
{{ DataOverview.bindingNew }}
-
新增绑定
+
{{ DataOverview.binding }}
+
已绑定设备
{{ DataOverview.equipmentAbnormal }}
@@ -30,7 +30,7 @@
-