From 5fbbfc7789e16ead784457b5ec1ba7a2ad28f3e8 Mon Sep 17 00:00:00 2001 From: huanglingchen Date: Thu, 24 Jul 2025 10:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=99=BB=E5=BD=95=E5=92=8C?= =?UTF-8?q?=E9=80=80=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 ++++-- pages/index/index.vue | 19 ++++--------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/pages.json b/pages.json index 1eb5959..19bf7fe 100644 --- a/pages.json +++ b/pages.json @@ -1,7 +1,7 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { - "path": "pages/login/LoginPage", + "path": "pages/index/index", "style": { "navigationBarTitleText": "", "navigationStyle": "custom", @@ -10,8 +10,9 @@ } } }, + { - "path": "pages/index/index", + "path": "pages/login/LoginPage", "style": { "navigationBarTitleText": "", "navigationStyle": "custom", @@ -20,6 +21,7 @@ } } } + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/index/index.vue b/pages/index/index.vue index 21aef24..528a745 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -8,9 +8,9 @@ 控制面板 车辆面板 - + @@ -23,11 +23,11 @@ export default { components: { controlPage, - carPage + carPage, }, data() { return { - optionIndex:1, + optionIndex:0, dataInter:[ { name:'支架车在线状态:', @@ -123,17 +123,6 @@ this.carData2=this.carEntsorgen(res.data,2); this.carData3=this.carEntsorgen(res.data,3); } - // this.deviceData=this.mock.data; - // this.carData1=this.carEntsorgen(this.mock.data,1); - // this.carData2=this.carEntsorgen(this.mock.data,2); - // this.carData3=this.carEntsorgen(this.mock.data,3); - // else{ - // uni.showToast({ - // title:'接口错误', - // icon:'error', - // duration:1200 - // }) - // } }) },