@ibiz-template/vue3-components 0.7.41-alpha.160 → 0.7.41-alpha.161
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/{index-BnZfLxt2.js → index-tdETtwyA.js} +4 -4
- package/dist/{index.es-BoiMEHwG.js → index.es-DUXWOiyZ.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-DD1wqKXD.js → wang-editor-PNMpcw5R.js} +1 -1
- package/dist/{xlsx-util-CBSFRY3I.js → xlsx-util-3XIF992X.js} +1 -1
- package/es/util/ai-chat-util/ai-chat-util.mjs +2 -1
- package/lib/util/ai-chat-util/ai-chat-util.cjs +2 -1
- package/package.json +2 -2
- package/src/util/ai-chat-util/ai-chat-util.ts +3 -1
|
@@ -2015,7 +2015,8 @@ class AIChatUtil {
|
|
|
2015
2015
|
const { protocol, hostname, port } = window.location;
|
|
2016
2016
|
const actualPort = port || (protocol === "https:" ? "443" : "80");
|
|
2017
2017
|
const windowInfo = "".concat(protocol, "//").concat(hostname, ":").concat(actualPort);
|
|
2018
|
-
const
|
|
2018
|
+
const hashName = "".concat(ibiz.util.md5("".concat(id, "_").concat(name)), "/").concat(name);
|
|
2019
|
+
const filedownloadurl = "".concat(windowInfo).concat(downloadUrl, "?fullfilename=").concat(hashName);
|
|
2019
2020
|
const b64Encoded = ibiz.util.base64.encode(filedownloadurl);
|
|
2020
2021
|
const previewUrl = "".concat(filePreviewAddress, "/onlinePreview?url=").concat(encodeURIComponent(b64Encoded));
|
|
2021
2022
|
return previewUrl;
|
|
@@ -2017,7 +2017,8 @@ class AIChatUtil {
|
|
|
2017
2017
|
const { protocol, hostname, port } = window.location;
|
|
2018
2018
|
const actualPort = port || (protocol === "https:" ? "443" : "80");
|
|
2019
2019
|
const windowInfo = "".concat(protocol, "//").concat(hostname, ":").concat(actualPort);
|
|
2020
|
-
const
|
|
2020
|
+
const hashName = "".concat(ibiz.util.md5("".concat(id, "_").concat(name)), "/").concat(name);
|
|
2021
|
+
const filedownloadurl = "".concat(windowInfo).concat(downloadUrl, "?fullfilename=").concat(hashName);
|
|
2021
2022
|
const b64Encoded = ibiz.util.base64.encode(filedownloadurl);
|
|
2022
2023
|
const previewUrl = "".concat(filePreviewAddress, "/onlinePreview?url=").concat(encodeURIComponent(b64Encoded));
|
|
2023
2024
|
return previewUrl;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.161",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
33
33
|
"@floating-ui/dom": "^1.5.3",
|
|
34
|
-
"@ibiz-template-plugin/ai-chat": "^0.0.
|
|
34
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.128",
|
|
35
35
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
|
|
36
36
|
"@ibiz-template-plugin/bi-report": "0.0.32",
|
|
37
37
|
"@ibiz-template-plugin/data-view": "0.0.8",
|
|
@@ -2586,7 +2586,9 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
2586
2586
|
// 没有端口使用默认端口
|
|
2587
2587
|
const actualPort = port || (protocol === 'https:' ? '443' : '80');
|
|
2588
2588
|
const windowInfo = `${protocol}//${hostname}:${actualPort}`;
|
|
2589
|
-
|
|
2589
|
+
// fullfilename 参与预览服务端缓存 key,用 id_name 的 md5 保证不同目录同名文件缓存不冲突
|
|
2590
|
+
const hashName = `${ibiz.util.md5(`${id}_${name}`)}/${name}`;
|
|
2591
|
+
const filedownloadurl = `${windowInfo}${downloadUrl}?fullfilename=${hashName}`;
|
|
2590
2592
|
const b64Encoded = ibiz.util.base64.encode(filedownloadurl);
|
|
2591
2593
|
const previewUrl = `${filePreviewAddress}/onlinePreview?url=${encodeURIComponent(b64Encoded)}`;
|
|
2592
2594
|
return previewUrl;
|