1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 21:58:58 +09:00
This commit is contained in:
syuilo 2019-07-05 21:18:49 +09:00
parent d848195a6e
commit 68d49bc770

View File

@ -2,7 +2,7 @@ import Vue from 'vue';
Vue.filter('bytes', (v, digits = 0) => {
if (v == null) return '?';
const sizes = ['B', 'KB', 'MB', 'GB', 'TB'];
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
if (v == 0) return '0';
const isMinus = v < 0;
if (isMinus) v = -v;