fix: dual id/name matching for installed + console.error on all catches
This commit is contained in:
@@ -20,7 +20,7 @@ const PageRecord = {
|
||||
const size = f.size > 1048576 ? (f.size/1048576).toFixed(1)+'MB' : (f.size/1024).toFixed(1)+'KB';
|
||||
return '<div class="glass-card" style="padding:10px 14px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap"><span style="font-size:12px;flex:1;min-width:150px">' + f.name + '</span><span style="font-size:11px;color:var(--text-tertiary)">' + size + '</span><button class="btn btn-sm btn-primary btn-play-rec" data-file="' + f.name + '">播放</button><a class="btn btn-sm btn-secondary" href="/api/recording/' + f.name + '/export" download>导出</a><button class="btn btn-sm btn-danger btn-del-rec" data-file="' + f.name + '">删除</button></div>';
|
||||
}).join('');
|
||||
} catch (e) {}
|
||||
} catch (e) { console.error(e); }
|
||||
},
|
||||
|
||||
_bindEvents() {
|
||||
|
||||
Reference in New Issue
Block a user