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 @@
-