We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e670f commit 4ea846cCopy full SHA for 4ea846c
3 files changed
CHANGELOG.md
@@ -1,5 +1,10 @@
1
# 更新日志
2
3
+## 1.5.7
4
+
5
+- 修复:当大文件加载提示超过1G错误展示成1T
6
+- 其他:修改默认权限为管理员可用,防止权限越权
7
8
## 1.5.6
9
10
- 优化:当 path 为目录时,打开目录
app/app/ui/config
@@ -5,7 +5,7 @@
"icon": "images/icon_{0}.png",
"type": "iframe",
"url": "/cgi/ThirdParty/code.editor/index.cgi/",
- "allUsers": true,
+ "allUsers": false,
"noDisplay": false,
"fileTypes": [
11
"text",
frontend/src/utils/file.ts
@@ -38,7 +38,12 @@ export const getSize = (byte: number) => {
38
return `${Number(MB.toFixed(2))} MB`
39
}
40
41
- const TB = MB / 1024
+ const GB = MB / 1024
42
+ if (GB < 1024) {
43
+ return `${Number(GB.toFixed(2))} GB`
44
+ }
45
46
+ const TB = GB / 1024
47
if (TB < 1024) {
48
return `${Number(TB.toFixed(2))} TB`
49
0 commit comments