diff --git a/resource/template/theme-daynight/home.html b/resource/template/theme-daynight/home.html index 0188992..0f3df3a 100644 --- a/resource/template/theme-daynight/home.html +++ b/resource/template/theme-daynight/home.html @@ -246,7 +246,7 @@ }, formatByteSize(bs) { const x = this.readableBytes(bs) - return x != "NaN undefined" ? x : '0 KB' + return x != "NaN undefined" ? x : '0B' } } }) diff --git a/resource/template/theme-default/home.html b/resource/template/theme-default/home.html index 4f06a86..d7261d1 100644 --- a/resource/template/theme-default/home.html +++ b/resource/template/theme-default/home.html @@ -215,7 +215,7 @@ }, formatByteSize(bs) { const x = readableBytes(bs) - return x != "NaN undefined" ? x : '0 KB' + return x != "NaN undefined" ? x : '0B' } } }) diff --git a/resource/template/theme-hotaru/home.html b/resource/template/theme-hotaru/home.html index b0fbf5b..65fa4d3 100644 --- a/resource/template/theme-hotaru/home.html +++ b/resource/template/theme-hotaru/home.html @@ -211,6 +211,10 @@ sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; return parseFloat((bytes / Math.pow(1024, i)).toFixed(2)) + sizes[i]; }, + formatByteSize(bs) { + const x = this.readableBytes(bs) + return x != "NaN undefined" ? x : '0B' + }, troggleDarkMode() { const hour = new Date(Date.now()).getHours() if (hour > 17 || hour < 4) { diff --git a/service/dao/dao.go b/service/dao/dao.go index 26626b1..95cd279 100644 --- a/service/dao/dao.go +++ b/service/dao/dao.go @@ -13,7 +13,7 @@ import ( pb "github.com/naiba/nezha/proto" ) -var Version = "v0.8.5" // !!记得修改 README 中的 badge 版本!! +var Version = "v0.8.6" // !!记得修改 README 中的 badge 版本!! var ( Conf *model.Config