feat(js): 补齐toastWarning/toastError封装(统一反馈口径)

This commit is contained in:
萝卜
2026-03-17 17:22:58 +08:00
parent e93fda474b
commit b34236b32f
2 changed files with 33 additions and 0 deletions

View File

@@ -585,6 +585,15 @@
return toast('success', text, 2500);
}
function toastWarning(text) {
return toast('warning', text, 4500);
}
function toastError(text) {
// error 需要更久,避免运营错过
return toast('error', text, 9000);
}
// 通用:按钮短暂反馈(已复制/复制失败)并自动恢复
// 说明:用于复制 run_id / 复制治理链接,避免两套口径漂移。
function tempButtonFeedback(btn, ok, origAttr) {