feat(js): 复制失败优先toastError反馈(alert降级)

This commit is contained in:
萝卜
2026-03-17 17:25:14 +08:00
parent b34236b32f
commit c48c4e7470
2 changed files with 26 additions and 0 deletions

View File

@@ -643,6 +643,9 @@
try { window.alert('已复制 run_id' + runId); } catch (e) {}
}).catch(function(){
markCopiedRunId(false);
if (toastError('复制失败,请手动复制 run_id' + runId)) {
return;
}
try { window.alert('复制失败,请手动复制 run_id' + runId); } catch (e) {}
});
});
@@ -684,6 +687,9 @@
try { window.alert('已复制' + label + '链接'); } catch (e) {}
}).catch(function(){
markCopied(btn, false);
if (toastError('复制失败,请手动复制' + label + '链接')) {
return;
}
try { window.alert('复制失败,请手动复制' + label + '链接'); } catch (e) {}
});
});