File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
web/src/apps/dataGovernance Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,9 @@ export default {
210
210
.then (data => {
211
211
if (data .result ) {
212
212
data .result .forEach (item => {
213
- let tempLen = Math .floor (item .storage .length / 3 )
213
+ let tempLen = Math .floor (item .storage .length / 4 )
214
214
let len = tempLen > 2 ? 3 : tempLen
215
- item .storage = (item .storage / (1024 * ( len + 1 ) )).toFixed (2 )
215
+ item .storage = (item .storage / Math . pow (1024 , len + 1 )).toFixed (2 )
216
216
switch (len){
217
217
case 0 :
218
218
item .storage = item .storage + ' KB'
Original file line number Diff line number Diff line change @@ -305,9 +305,9 @@ export default {
305
305
classifications
306
306
} = data .result ;
307
307
if (parseInt (basic .store )) {
308
- let tempLen = Math .floor (basic .store .length / 3 )
308
+ let tempLen = Math .floor (basic .store .length / 4 )
309
309
let len = tempLen > 2 ? 3 : tempLen
310
- basic .store = (basic .store / (1024 * ( len + 1 ) )).toFixed (2 )
310
+ basic .store = (basic .store / Math . pow (1024 , len + 1 )).toFixed (2 )
311
311
switch (len){
312
312
case 0 :
313
313
basic .store = basic .store + ' KB'
You can’t perform that action at this time.
0 commit comments