提交 ad854d32 编写于 作者: Cano1997's avatar Cano1997

update: 调整插件上传路径

上级 1cd8a8db
...@@ -5589,7 +5589,7 @@ function hu(r, A, e) { ...@@ -5589,7 +5589,7 @@ function hu(r, A, e) {
const p = t.value.findIndex((y) => y.id === C.id); const p = t.value.findIndex((y) => y.id === C.id);
p !== -1 && t.value.splice(p, 1), u(); p !== -1 && t.value.splice(p, 1), u();
}, w = (C) => { }, w = (C) => {
const y = (e.parent.form || e.parent.grid).model.appEntity.deName, D = `${C.id}|${y}|${r.data.srfkey}|${e.context.srfpersonid || e.context.srfuserid}`, I = `http://downloadpath?key=${window.btoa(D)}`; const y = (e.parent.form || e.parent.grid).model.appEntity.deName, D = `${C.id}|${y}|${r.data.srfkey}|${e.context.srfpersonid || e.context.srfuserid}`, I = `${ibiz.env.baseUrl}${ibiz.env.downloadFileUrl}?key=${window.btoa(D)}`;
e.fileDownload({ url: I, name: C.name }); e.fileDownload({ url: I, name: C.name });
}, h = M(!1), v = M(""), H = M(""); }, h = M(!1), v = M(""), H = M("");
return { return {
......
...@@ -175,7 +175,9 @@ export function useIViewUpload( ...@@ -175,7 +175,9 @@ export function useIViewUpload(
const base64 = `${file.id}|${entityName}|${props.data.srfkey}|${ const base64 = `${file.id}|${entityName}|${props.data.srfkey}|${
c.context.srfpersonid || c.context.srfuserid c.context.srfpersonid || c.context.srfuserid
}`; }`;
const url = `http://downloadpath?key=${window.btoa(base64)}`; const url = `${ibiz.env.baseUrl}${
ibiz.env.downloadFileUrl
}?key=${window.btoa(base64)}`;
c.fileDownload({ url, name: file.name }); c.fileDownload({ url, name: file.name });
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册