修复拖拽文件后,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, type,
payload payload
}) => { }) => {
path="";
if (type == 'files') { if (type == 'files') {
path = payload[0].path; path = payload[0].path;
console.log("检测到文件:" + path) console.log("检测到文件:" + path)
@ -98,13 +100,14 @@
} }
reload() reload()
}) })
function reload() { function reload() {
chinese = []; chinese = [];
$('#device').empty(); $('#device').empty();
$('#log').val(''); $('#log').val('');
window.adb('adb devices', (stdout,error) => { window.adb('adb devices', (stdout,error) => {
if(error==true){ if(error==true){
log(stdout) log(stdout)