@ebl-vue/editor-full 2.31.36 → 2.31.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebl-vue/editor-full",
3
- "version": "2.31.36",
3
+ "version": "2.31.37",
4
4
  "type": "module",
5
5
  "author": "lrj525@sina.com",
6
6
  "description": "结构化编辑器",
@@ -127,6 +127,9 @@ export default class Uploader {
127
127
  }
128
128
  console.log(uploadRes);
129
129
  cdn = uploadRes.data.cdn;
130
+ if (cdn && !cdn.endsWith) {
131
+ cdn += "/";
132
+ }
130
133
  objectKey = uploadRes.data.objectKey;
131
134
 
132
135
  //headers["Content-Type"] = file.type;
@@ -143,6 +146,7 @@ export default class Uploader {
143
146
 
144
147
  }
145
148
  if (response.status === 200) {
149
+
146
150
  res = {
147
151
  success: 1,
148
152
  file: { url: cdn + objectKey }
@@ -260,7 +264,9 @@ export default class Uploader {
260
264
  console.log(uploadRes);
261
265
  let cdn = uploadRes.data.cdn;
262
266
  let objectKey = uploadRes.data.objectKey;
263
-
267
+ if (cdn && !cdn.endsWith) {
268
+ cdn += "/";
269
+ }
264
270
 
265
271
  headers["Content-Type"] = file.type;
266
272
  let upload = axiosInstance.put(uploadRes.data.presignedUrl, file);