微调-引入全局获取时间小时数据
This commit is contained in:
4
main.js
4
main.js
@@ -6,6 +6,10 @@ import {music, bgm} from '@/utils/music.js'
|
|||||||
Vue.prototype.$music = music
|
Vue.prototype.$music = music
|
||||||
Vue.prototype.$bgm = bgm
|
Vue.prototype.$bgm = bgm
|
||||||
|
|
||||||
|
|
||||||
|
import {nowHour} from '@/utils/getHours.js'
|
||||||
|
Vue.prototype.$getHours = nowHour
|
||||||
|
|
||||||
// 地址
|
// 地址
|
||||||
// Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
// Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||||
// Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
// Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
||||||
|
|||||||
@@ -176,6 +176,7 @@
|
|||||||
console.log('初始时间', this.dateToString, this.date)
|
console.log('初始时间', this.dateToString, this.date)
|
||||||
this.getXueWei(this.dateToString)
|
this.getXueWei(this.dateToString)
|
||||||
this.getTGDZ(this.dateToString)
|
this.getTGDZ(this.dateToString)
|
||||||
|
// console.log('全局hours',this.$getHours.hourNumber)
|
||||||
},
|
},
|
||||||
|
|
||||||
onHide() {
|
onHide() {
|
||||||
|
|||||||
Reference in New Issue
Block a user