处理备份列表报错问题
This commit is contained in:
parent
1de1ba6373
commit
9a53c4e4e9
@ -366,5 +366,6 @@
|
||||
"script_name_cannot_be_set_to_empty": "脚本name不可以设置为空",
|
||||
"eslint_config_format_error": "eslint配置格式错误",
|
||||
"export_success": "导出成功",
|
||||
"get_backup_dir_url_failed": "获取备份目录地址失败"
|
||||
"get_backup_dir_url_failed": "获取备份目录地址失败",
|
||||
"get_backup_files_failed": "获取备份文件失败"
|
||||
}
|
@ -141,8 +141,8 @@ function Tools() {
|
||||
loading={loading.cloud}
|
||||
onClick={async () => {
|
||||
setLoading((prev) => ({ ...prev, cloud: true }));
|
||||
let fs = await FileSystemFactory.create(fileSystemType, fileSystemParams);
|
||||
try {
|
||||
let fs = await FileSystemFactory.create(fileSystemType, fileSystemParams);
|
||||
fs = await fs.openDir("ScriptCat");
|
||||
let list = await fs.list();
|
||||
list.sort((a, b) => b.updatetime - a.updatetime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user