File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11# 更新日志
22
3+ ## 1.5.7
4+
5+ - 修复:当大文件加载提示超过1G错误展示成1T
6+ - 其他:修改默认权限为管理员可用,防止权限越权
7+
38## 1.5.6
49
510- 优化:当 path 为目录时,打开目录
Original file line number Diff line number Diff line change 55 "icon": "images/icon_{0}.png",
66 "type": "iframe",
77 "url": "/cgi/ThirdParty/code.editor/index.cgi/",
8- "allUsers": true ,
8+ "allUsers": false ,
99 "noDisplay": false,
1010 "fileTypes": [
1111 "text",
Original file line number Diff line number Diff line change @@ -38,7 +38,12 @@ export const getSize = (byte: number) => {
3838 return `${ Number ( MB . toFixed ( 2 ) ) } MB`
3939 }
4040
41- const TB = MB / 1024
41+ const GB = MB / 1024
42+ if ( GB < 1024 ) {
43+ return `${ Number ( GB . toFixed ( 2 ) ) } GB`
44+ }
45+
46+ const TB = GB / 1024
4247 if ( TB < 1024 ) {
4348 return `${ Number ( TB . toFixed ( 2 ) ) } TB`
4449 }
You can’t perform that action at this time.
0 commit comments