qidian-vue-ui 1.0.87 → 1.0.88

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.
@@ -12759,8 +12759,8 @@ const QdConfigProvider = vue.defineComponent({
12759
12759
  vue.watchEffect(async () => {
12760
12760
  const localeMap = {
12761
12761
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12762
- "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-Dc4aq6uB.js")),
12763
- "en-US": () => Promise.resolve().then(() => require("./en-US-CF5ETwxv.js"))
12762
+ "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-CoMdJzvj.js")),
12763
+ "en-US": () => Promise.resolve().then(() => require("./en-US-BbEMmlGf.js"))
12764
12764
  };
12765
12765
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12766
12766
  const [err, res] = await to(
@@ -17840,7 +17840,10 @@ function useAgentChat(options) {
17840
17840
  client_type: "API_KEY",
17841
17841
  ...extParams
17842
17842
  });
17843
- csl.log.dev("send.new", "----------------------------");
17843
+ csl.log.dev(
17844
+ `send.${sId}`,
17845
+ "------------------------------------------------------------------------------------"
17846
+ );
17844
17847
  csl.log.dev(`send.${sId}`, { agentInfo: agInfo, body });
17845
17848
  return new Promise((resolve, reject) => {
17846
17849
  let timeoutId;
@@ -17856,7 +17859,9 @@ function useAgentChat(options) {
17856
17859
  function setTimeoutHandler() {
17857
17860
  if (timeoutId) clearTimeout(timeoutId);
17858
17861
  timeoutId = setTimeout(() => {
17859
- triggerError(new Error(t("agentProcessingTimeoutMessage")));
17862
+ const err = new Error(t("agentProcessingTimeoutMessage"));
17863
+ alertError(err.message);
17864
+ triggerError(err);
17860
17865
  stop();
17861
17866
  }, 20 * 1e3);
17862
17867
  }
@@ -17922,7 +17927,7 @@ function useAgentChat(options) {
17922
17927
  },
17923
17928
  onerror: (err) => {
17924
17929
  const reErr = err ? err : new Error(t("apiUnknownErrorMessage"));
17925
- msgError(reErr.message);
17930
+ alertError(reErr.message);
17926
17931
  triggerError(reErr);
17927
17932
  throw reErr;
17928
17933
  }
@@ -17943,6 +17948,7 @@ function useAgentChat(options) {
17943
17948
  const [err, res] = await suspectedWrapperPromise(getFn());
17944
17949
  if (err) throw err;
17945
17950
  if (!res?.agentId || !res.apiKey) throw new Error(t("failedObtainAgentInfoMessage"));
17951
+ csl.log.dev("getAgentInfo", res);
17946
17952
  return res;
17947
17953
  }
17948
17954
  async function getSessionId({
@@ -17956,6 +17962,7 @@ function useAgentChat(options) {
17956
17962
  const [err, res] = await suspectedWrapperPromise(getFn(agentId2, apiKey2));
17957
17963
  if (err) throw err;
17958
17964
  sessionId.value = res;
17965
+ csl.log.dev("getSessionId", res);
17959
17966
  return res;
17960
17967
  }
17961
17968
  vue.onBeforeUnmount(() => {
@@ -28263,7 +28270,7 @@ class NodeFilterFactory extends BaseFilterFactory {
28263
28270
  }
28264
28271
  class NodeCanvasFactory extends BaseCanvasFactory {
28265
28272
  _createCanvas(width, height) {
28266
- const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-pVB9NlXo.js", document.baseURI).href);
28273
+ const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-YsJcyYUi.js", document.baseURI).href);
28267
28274
  const canvas = require$1("@napi-rs/canvas");
28268
28275
  return canvas.createCanvas(width, height);
28269
28276
  }
@@ -55334,4 +55341,4 @@ exports.useDictDynamic = useDictDynamic;
55334
55341
  exports.useDisabled = useDisabled;
55335
55342
  exports.useModal = useModal;
55336
55343
  exports.useReadonly = useReadonly;
55337
- //# sourceMappingURL=index-pVB9NlXo.js.map
55344
+ //# sourceMappingURL=index-YsJcyYUi.js.map