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
- // })
- // }
})
},