修复拖拽文件后,ESC退出再用adb进来会自动执行上个操作

This commit is contained in:
Yutousama 2020-02-24 10:07:10 +08:00
parent 887c7681dc
commit bbbe21791e

View File

@ -91,6 +91,8 @@
type,
payload
}) => {
path="";
if (type == 'files') {
path = payload[0].path;
console.log("检测到文件:" + path)
@ -98,13 +100,14 @@
}
reload()
})
function reload() {
chinese = [];
$('#device').empty();
$('#log').val('');
window.adb('adb devices', (stdout,error) => {
if(error==true){
log(stdout)