优化首次进入ui

feasure
lld 2026-03-11 18:20:52 +08:00
parent 0860028c87
commit a6b8858927
3 changed files with 9 additions and 10 deletions

View File

@ -64,14 +64,10 @@
{
"path": "control/index",
"style": {
"navigationBarTitleText": "控制中心",
"usingComponents": {
"auto-page": "/pages/home/control/automatic",
"manual-page": "/pages/home/control/manual"
"navigationBarTitleText": "控制中心"
}
}
}
// ,
// {
// "path": "control/automatic",
// "style": {

View File

@ -566,9 +566,6 @@ export default {
refresh() {
this.getAgriTerm();
this.showFlag = !((store.getters && store.getters.name !== 'admin') && this.$auth.hasRole("test"))
this.$nextTick(() => {
this.getSwiperHeight(); //
});
},
getAgriTerm() {
getAgriTerm(this.imei).then(response => {
@ -595,7 +592,9 @@ export default {
}
}).catch(err => {
}).finally(() => {
this.$nextTick(() => {
this.getSwiperHeight(); //
});
});
},
// --------------------------------------------------

View File

@ -62,6 +62,8 @@
</template>
<script>
import ManualPage from "./manual.vue"
import AutoPage from "./automatic.vue"
//
const SENSOR_MAP = {
temp1: "201", temp2: "202", temp3: "203", temp4: "204",
@ -87,6 +89,8 @@ export default {
components: {
ZPaging,
CustomRefresher,
ManualPage,
AutoPage,
},
data() {
return {