ai_co_discuss 0.2.28 → 0.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/app.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
package/web/app.js CHANGED
@@ -2981,11 +2981,13 @@ async function execute_view_action(name, value) {
2981
2981
  prepare_brainstorm, return_conclusion, convert_suggestion,
2982
2982
  busy: () => { throw new Error("上一个操作仍在处理中,请稍候;长时间无响应请刷新页面"); },
2983
2983
  copy_reading: () => copy_text(`${location.origin}/r/${state.room.id}`), copy: copy_text };
2984
+ if (!["refresh", "busy"].includes(name)) state.free_error = "";
2984
2985
  try {
2985
2986
  await actions[name](value);
2986
2987
  return true;
2987
2988
  } catch (error) {
2988
2989
  if (["download_member_access", "copy_member_join"].includes(name)) state.access_error = error.message;
2990
+ else if (!state.free_error) state.free_error = error.message;
2989
2991
  show_toast(error.message, true);
2990
2992
  return false;
2991
2993
  } finally { publish_view(); }