🐛(component): 清理 upload 组件调试日志
This commit is contained in:
parent
b5970d81bc
commit
efecad532e
@ -46,6 +46,7 @@ export interface LayerModal {
|
|||||||
anim?: boolean;
|
anim?: boolean;
|
||||||
isOutAnim?: boolean;
|
isOutAnim?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface cutOptions {
|
export interface cutOptions {
|
||||||
layerOption: LayerModal;
|
layerOption: LayerModal;
|
||||||
copperOption?: typeof Cropper;
|
copperOption?: typeof Cropper;
|
||||||
@ -73,7 +74,6 @@ const getCutDownResult = () => {
|
|||||||
let imgData = canvas.toDataURL('"image/png"');
|
let imgData = canvas.toDataURL('"image/png"');
|
||||||
let currentTimeStamp = new Date().valueOf();
|
let currentTimeStamp = new Date().valueOf();
|
||||||
let orgInfo = activeUploadFiles.value[0];
|
let orgInfo = activeUploadFiles.value[0];
|
||||||
console.log(orgInfo);
|
|
||||||
emit(
|
emit(
|
||||||
"cutdone",
|
"cutdone",
|
||||||
Object.assign({ currentTimeStamp, cutResult: imgData, orginal: orgInfo })
|
Object.assign({ currentTimeStamp, cutResult: imgData, orginal: orgInfo })
|
||||||
@ -254,7 +254,6 @@ const localUpload = (option: localUploadOption, callback: Function) => {
|
|||||||
} else if (xhr.readyState === 4) {
|
} else if (xhr.readyState === 4) {
|
||||||
// 完成
|
// 完成
|
||||||
let successText = xhr.responseText ? xhr.responseText : uploadSuccess;
|
let successText = xhr.responseText ? xhr.responseText : uploadSuccess;
|
||||||
console.log(xhr);
|
|
||||||
if (
|
if (
|
||||||
(xhr.status >= 200 && xhr.status <= 300) ||
|
(xhr.status >= 200 && xhr.status <= 300) ||
|
||||||
xhr.status === 304 ||
|
xhr.status === 304 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user