This commit is contained in:
chengdandan 2023-04-18 16:05:49 +08:00
parent 1d859d0d6d
commit a02227c4e9
1 changed files with 6 additions and 1 deletions

View File

@ -111,6 +111,7 @@ import {getData} from './api/index.js'
this.fun(); this.fun();
}, },
mounted() { mounted() {
window.goPage = this.goPage()
this.menuChange(0,this.menuBtn[0].name) this.menuChange(0,this.menuBtn[0].name)
let week = new Date(this.$moment().format("YYYY-MM-DD")).getDay() let week = new Date(this.$moment().format("YYYY-MM-DD")).getDay()
this.week = this.weekList[week] this.week = this.weekList[week]
@ -132,7 +133,7 @@ import {getData} from './api/index.js'
methods:{ methods:{
// //
menuChange(index,name){ menuChange(index,name){
console.log("name",name) this.goPage(name)
this.menuAc = index this.menuAc = index
this.menuBtn.forEach((item,index) => { this.menuBtn.forEach((item,index) => {
if (index == 0) { if (index == 0) {
@ -169,6 +170,10 @@ import {getData} from './api/index.js'
this.$router.push('alarm') this.$router.push('alarm')
} }
}, },
goPage(name){
console.log(name)
},
// //
floorChange(index){ floorChange(index){
this.floorAct = index this.floorAct = index