注释console
This commit is contained in:
parent
9f62ada310
commit
112a70b86a
|
@ -116,7 +116,7 @@ export default function Setting() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const isShowThird = async (id) => {
|
const isShowThird = async (id) => {
|
||||||
console.log(id);
|
// console.log(id);
|
||||||
try {
|
try {
|
||||||
const _data = await requireAPI("POST", "/api/zone_third_partner/list", {
|
const _data = await requireAPI("POST", "/api/zone_third_partner/list", {
|
||||||
body: {
|
body: {
|
||||||
|
|
|
@ -98,7 +98,7 @@ export default function UploadImgs({
|
||||||
videoObj.src = videoUrl;
|
videoObj.src = videoUrl;
|
||||||
videoObj.load();
|
videoObj.load();
|
||||||
}
|
}
|
||||||
console.log("assets", [...assets, ...eles]);
|
// console.log("assets", [...assets, ...eles]);
|
||||||
getImgs([...assets, ...eles]);
|
getImgs([...assets, ...eles]);
|
||||||
};
|
};
|
||||||
const handleRemoveItem = (index) => {
|
const handleRemoveItem = (index) => {
|
||||||
|
@ -217,7 +217,7 @@ export default function UploadImgs({
|
||||||
return column;
|
return column;
|
||||||
});
|
});
|
||||||
setColumns(newColumns);
|
setColumns(newColumns);
|
||||||
console.log("newList", newList);
|
// console.log("newList", newList);
|
||||||
getImgs([...newList]);
|
getImgs([...newList]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -46,7 +46,7 @@ export default function customFetch(
|
||||||
|
|
||||||
// 合并选项
|
// 合并选项
|
||||||
const mergedOptions = { ...defaultOptions, body };
|
const mergedOptions = { ...defaultOptions, body };
|
||||||
console.log("body", body);
|
// console.log("body", body);
|
||||||
// 返回 Promise 对象
|
// 返回 Promise 对象
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
fetch(url, mergedOptions)
|
fetch(url, mergedOptions)
|
||||||
|
|
|
@ -128,13 +128,13 @@ export function getVideoBase64(url) {
|
||||||
video.muted = true;
|
video.muted = true;
|
||||||
video.addEventListener("loadeddata", function () {
|
video.addEventListener("loadeddata", function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
console.log("监听到了listen:", "loadeddata");
|
// console.log("监听到了listen:", "loadeddata");
|
||||||
canvas
|
canvas
|
||||||
.getContext("2d")
|
.getContext("2d")
|
||||||
.drawImage(video, 0, 0, canvas.width, canvas.height); //绘制canvas
|
.drawImage(video, 0, 0, canvas.width, canvas.height); //绘制canvas
|
||||||
const dataURL = canvas.toDataURL("image/jpeg"); //转换为base64
|
const dataURL = canvas.toDataURL("image/jpeg"); //转换为base64
|
||||||
video.setAttribute("poster", dataURL);
|
video.setAttribute("poster", dataURL);
|
||||||
console.log(dataURL, "dataURL");
|
// console.log(dataURL, "dataURL");
|
||||||
resolve(dataURL);
|
resolve(dataURL);
|
||||||
|
|
||||||
// 清除内存
|
// 清除内存
|
||||||
|
|
Loading…
Reference in New Issue