mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-10 04:16:29 +08:00
fix: 修改计划任务下载判断 (#2284)
This commit is contained in:
parent
279f8f0e6c
commit
5c0fb405d0
2 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ func RemoveRepeatElement(a interface{}) (ret []interface{}) {
|
|||
|
||||
func LoadSizeUnit(value float64) string {
|
||||
if value > 1073741824 {
|
||||
return fmt.Sprintf("%.2fM", value/1073741824)
|
||||
return fmt.Sprintf("%.2fG", value/1073741824)
|
||||
}
|
||||
if value > 1048576 {
|
||||
return fmt.Sprintf("%.2fM", value/1048576)
|
||||
|
|
|
|||
|
|
@ -599,7 +599,7 @@ const onDownload = async (record: any, backupID: number) => {
|
|||
type = i18n.global.t('website.website');
|
||||
break;
|
||||
}
|
||||
if (currentRecord.value.file.indexOf(',') !== 0) {
|
||||
if (currentRecord.value.file.indexOf(',') !== -1) {
|
||||
MsgInfo(i18n.global.t('cronjob.allOptionHelper', [type]));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue