Merge pull request '注释console' (#7) from version_1.1 into main

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_h5/pulls/7
This commit is contained in:
yezian 2024-11-22 14:53:18 +08:00
commit 6da5587f07
4 changed files with 6 additions and 6 deletions

View File

@ -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: {

View File

@ -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]);
} }
}; };

View File

@ -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)

View File

@ -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);
// 清除内存 // 清除内存