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.
- package/dist/{en-US-CF5ETwxv.js → en-US-BbEMmlGf.js} +2 -2
- package/dist/{en-US-CF5ETwxv.js.map → en-US-BbEMmlGf.js.map} +1 -1
- package/dist/{en-US-DyagtY9Z.mjs → en-US-DIZ_8gWs.mjs} +2 -2
- package/dist/{en-US-DyagtY9Z.mjs.map → en-US-DIZ_8gWs.mjs.map} +1 -1
- package/dist/{index-D5bzlCOs.mjs → index-DyhSKQs7.mjs} +13 -6
- package/dist/{index-D5bzlCOs.mjs.map → index-DyhSKQs7.mjs.map} +1 -1
- package/dist/{index-pVB9NlXo.js → index-YsJcyYUi.js} +14 -7
- package/dist/{index-pVB9NlXo.js.map → index-YsJcyYUi.js.map} +1 -1
- package/dist/qidian-vue-ui.js +1 -1
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-BgEQc5Md.mjs → zh-TW-C5TIFP-C.mjs} +2 -2
- package/dist/{zh-TW-BgEQc5Md.mjs.map → zh-TW-C5TIFP-C.mjs.map} +1 -1
- package/dist/{zh-TW-Dc4aq6uB.js → zh-TW-CoMdJzvj.js} +2 -2
- package/dist/{zh-TW-Dc4aq6uB.js.map → zh-TW-CoMdJzvj.js.map} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
12763
|
-
"en-US": () => Promise.resolve().then(() => require("./en-US-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
55344
|
+
//# sourceMappingURL=index-YsJcyYUi.js.map
|