字段修改,定时刷新
This commit is contained in:
@@ -31,12 +31,19 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
intervalId: null,
|
||||
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '',
|
||||
menuList: []
|
||||
};
|
||||
},
|
||||
created () {
|
||||
onLoad () {
|
||||
this._getBillsCount()
|
||||
this.intervalId = setInterval(this._getBillsCount, this.$store.getters.setTime)
|
||||
},
|
||||
onUnload () {
|
||||
if (this.intervalId) {
|
||||
clearInterval(this.intervalId)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async _getBillsCount () {
|
||||
|
||||
Reference in New Issue
Block a user