| 12345678910111213141516171819202122232425262728293031 |
- function l(e, t, n) {
- const a = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
- return window.$utils.http({
- url: `${a}/file/uploadWithBase64?businessTableName=${t}&invariantId=${n}`,
- data: e
- });
- }
- function o(e, t) {
- const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME, a = new FormData();
- a.append("path", e);
- for (let i = 0; i < t.length; i++)
- a.append("files", t[i], t[i].name);
- return window.$utils.http({
- url: `${n}/ftpFile/batchFileSave`,
- data: a,
- headers: {
- "Content-Type": "multipart/form-data"
- }
- });
- }
- function d(e, t) {
- const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
- return window.$utils.http({
- url: `${n}/ftpFile/delete?path=${e}&imageUrl=${encodeURIComponent(t)}`
- });
- }
- export {
- o as b,
- d,
- l as u
- };
|