@cmstops/pro-compo 0.1.54 → 0.1.55
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.
|
@@ -6,7 +6,7 @@ import ColorThief from "colorthief";
|
|
|
6
6
|
import { GifToCanvas } from "gif-to-canvas";
|
|
7
7
|
import GIF from "gif.js/dist/gif";
|
|
8
8
|
import { uploadByTUS } from "../utils/tusUpload.js";
|
|
9
|
-
import { DEFAULT_BASE_API } from "../config.js";
|
|
9
|
+
import { DEFAULT_BASE_API, DEFAULT_UPLOAD_URL } from "../config.js";
|
|
10
10
|
import { replaceSuffix } from "../utils/index.js";
|
|
11
11
|
import { getFileRealUrl } from "./script/api.js";
|
|
12
12
|
import { useGenerateAssets } from "../hooks/assets.js";
|
|
@@ -277,9 +277,9 @@ const _sfc_main = defineComponent({
|
|
|
277
277
|
const item = selectedData.value[cropperIndex.value];
|
|
278
278
|
const flag = !item.url.includes("/poplar/v2");
|
|
279
279
|
const cape = item.url.includes("cape/v1/upload");
|
|
280
|
+
const extented = !item.url.includes(BASE_API) && !item.url.includes(DEFAULT_UPLOAD_URL);
|
|
280
281
|
croppering.value = true;
|
|
281
|
-
|
|
282
|
-
if (item.realUrl && flag || cape) {
|
|
282
|
+
if (item.realUrl && flag || cape || extented) {
|
|
283
283
|
getBase64(item.url);
|
|
284
284
|
} else {
|
|
285
285
|
getFileRealUrl(BASE_API, item.url).then((res) => {
|
|
@@ -284,9 +284,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
284
284
|
const item = selectedData.value[cropperIndex.value];
|
|
285
285
|
const flag = !item.url.includes("/poplar/v2");
|
|
286
286
|
const cape = item.url.includes("cape/v1/upload");
|
|
287
|
+
const extented = !item.url.includes(BASE_API) && !item.url.includes(config.DEFAULT_UPLOAD_URL);
|
|
287
288
|
croppering.value = true;
|
|
288
|
-
|
|
289
|
-
if (item.realUrl && flag || cape) {
|
|
289
|
+
if (item.realUrl && flag || cape || extented) {
|
|
290
290
|
getBase64(item.url);
|
|
291
291
|
} else {
|
|
292
292
|
api.getFileRealUrl(BASE_API, item.url).then((res) => {
|