🐛(component): 清理 upload 组件调试日志

This commit is contained in:
就眠儀式 2022-08-26 01:23:31 +08:00
parent b5970d81bc
commit efecad532e

View File

@ -46,6 +46,7 @@ export interface LayerModal {
anim?: boolean;
isOutAnim?: boolean;
}
export interface cutOptions {
layerOption: LayerModal;
copperOption?: typeof Cropper;
@ -73,7 +74,6 @@ const getCutDownResult = () => {
let imgData = canvas.toDataURL('"image/png"');
let currentTimeStamp = new Date().valueOf();
let orgInfo = activeUploadFiles.value[0];
console.log(orgInfo);
emit(
"cutdone",
Object.assign({ currentTimeStamp, cutResult: imgData, orginal: orgInfo })
@ -254,7 +254,6 @@ const localUpload = (option: localUploadOption, callback: Function) => {
} else if (xhr.readyState === 4) {
//
let successText = xhr.responseText ? xhr.responseText : uploadSuccess;
console.log(xhr);
if (
(xhr.status >= 200 && xhr.status <= 300) ||
xhr.status === 304 ||