驾驶舱对接
This commit is contained in:
		| @@ -42,9 +42,11 @@ export default { | ||||
|   }, | ||||
|   mounted() { | ||||
|     this.getTimes() | ||||
|     this.getWeather() | ||||
|     this.getTimesInterval() | ||||
|     this.weatherInterval = setInterval(() => { | ||||
|       this,this.getWeather() | ||||
|     }, 1000) | ||||
|       this.getWeather() | ||||
|     }, 1800000) | ||||
|   }, | ||||
|   destroyed() { | ||||
|     // console.log(1111) | ||||
| @@ -52,9 +54,9 @@ export default { | ||||
|   }, | ||||
|   methods: { | ||||
|     getTimes() { | ||||
|       setInterval(this.getTimesInterval, 1000); | ||||
|       setInterval(this.getTimesInterval, 60000); | ||||
|     }, | ||||
|     getTimesInterval: function () { | ||||
|     getTimesInterval() { | ||||
|       var now = new Date(); | ||||
|       var weekDay = now.getDay(); | ||||
|       var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user