Commit ed3d7e00 authored by Facius's avatar Facius

fix: 账单页面刷新

parent e9089b2b
Pipeline #3243 canceled with stages
......@@ -88,16 +88,18 @@ export default {
// this.initDate();
},
onReady() {
this.$refs['scroll-box']?.reloadList();
this.firstEnter = false;
this.firstEnter = false
},
onShow() {
console.log('onShow');
if (!this.firstEnter) {
if (this.current == 0) {
this.$refs['scroll-box']?.reloadList();
this.$nextTick(()=> {
this.$refs['scroll-box'].reloadList();
})
} else if (this.current == 1) {
this.$refs['chart-view']?.reloadData();
this.$nextTick(()=> {
this.$refs['chart-view'].reloadData();
})
}
// this.getMouthStatistics();
}
......
......@@ -153,7 +153,7 @@ export default {
let params = {
current: this.current,
size: this.size,
month: this.date
month: this.defaultDate
};
let res = await getList(params);
if (this.current === 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment