📝: 📝: 删除低分辨率下 side 隐藏的问题
This commit is contained in:
parent
48fedd2174
commit
ab40116673
@ -240,20 +240,28 @@ const localUpload = (option: localUploadOption, callback: Function) => {
|
|||||||
// 发起
|
// 发起
|
||||||
let currentTimeStamp = new Date().valueOf();
|
let currentTimeStamp = new Date().valueOf();
|
||||||
if (xhr.readyState === 1) {
|
if (xhr.readyState === 1) {
|
||||||
if ((xhr.status >= 200 && xhr.status <= 300) || xhr.status === 304||xhr.status == 0) {
|
if (
|
||||||
|
(xhr.status >= 200 && xhr.status <= 300) ||
|
||||||
|
xhr.status === 304 ||
|
||||||
|
xhr.status == 0
|
||||||
|
) {
|
||||||
let successText = "上传开始";
|
let successText = "上传开始";
|
||||||
emit(
|
emit(
|
||||||
"before",
|
"before",
|
||||||
Object.assign({ currentTimeStamp, msg: successText, ...option })
|
Object.assign({ currentTimeStamp, msg: successText, ...option })
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}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);
|
console.log(xhr);
|
||||||
if((xhr.status >= 200 && xhr.status <= 300) || xhr.status === 304||xhr.status == 0){
|
if (
|
||||||
|
(xhr.status >= 200 && xhr.status <= 300) ||
|
||||||
|
xhr.status === 304 ||
|
||||||
|
xhr.status == 0
|
||||||
|
) {
|
||||||
let data = xhr.responseText;
|
let data = xhr.responseText;
|
||||||
emit("done", {currentTimeStamp,msg:successText,data:data});
|
emit("done", { currentTimeStamp, msg: successText, data: data });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -346,7 +354,7 @@ const commonUploadTransaction = (_files: any[]) => {
|
|||||||
files: _files,
|
files: _files,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
emit("done", {currentTimeStamp,msg:successText,data:_files});
|
emit("done", { currentTimeStamp, msg: successText, data: _files });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const chooseFile = () => {
|
const chooseFile = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user