This commit is contained in:
liuye
2021-12-22 14:07:25 +08:00
parent fc826c545f
commit 2b946d1f1f
2 changed files with 11 additions and 10 deletions

View File

@@ -6,19 +6,19 @@
</div>
<div class="num-row">
<div class="item">
<h3>13</h3>
<h3>{{numInfo.total}}</h3>
<p>照片</p>
</div>
<div class="item">
<h3>13</h3>
<h3>{{numInfo.lastMonth}}</h3>
<p>本月</p>
</div>
<div class="item">
<h3>13</h3>
<h3>{{numInfo.thisMonth}}</h3>
<p>上月</p>
</div>
<div class="item">
<h3>13</h3>
<h3>{{numInfo.thisYear}}</h3>
<p>今年</p>
</div>
</div>
@@ -50,7 +50,8 @@ export default {
list: [],
limit: 9,
size: 10 * 1024 * 1024,
fileList: []
fileList: [],
numInfo: {}
}
},
computed: { ...mapState(['user']) },
@@ -86,7 +87,7 @@ export default {
}
}).then(res => {
if (res.code == 0) {
this.numInfo = res.data
}
})
},