perf: 已用容量的显示
This commit is contained in:
parent
1392e8d6e4
commit
c6a7d5e3be
@ -144,7 +144,7 @@ export default {
|
|||||||
const quota = this.userInfo.quota
|
const quota = this.userInfo.quota
|
||||||
const space = this.takeUpSpace/1024/1024/1024
|
const space = this.takeUpSpace/1024/1024/1024
|
||||||
if(space && quota > 0){
|
if(space && quota > 0){
|
||||||
const percentage = Number((space/quota * 100).toFixed(1))
|
const percentage = Number((space/quota * 100).toFixed(5))
|
||||||
this.percentage = percentage > 100 ? 100 : percentage
|
this.percentage = percentage > 100 ? 100 : percentage
|
||||||
if(this.isCollapse){
|
if(this.isCollapse){
|
||||||
return `${formatSize(this.takeUpSpace)}`
|
return `${formatSize(this.takeUpSpace)}`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user