From f4282a80a70afe97ca40bd5c87f5fcd8f141fd0a Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 23 May 2020 17:39:53 +0800 Subject: [PATCH] bug fix --- src/assets/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/assets/index.js b/src/assets/index.js index 2ac52bb..a97b033 100644 --- a/src/assets/index.js +++ b/src/assets/index.js @@ -144,7 +144,7 @@ $("#tasklist").on('mousedown', '.taskinfo', function (e) { if (1 == e.which) { kill($(this).attr('id'), false); } else if (3 == e.which) { - kill($(this).attr('id'), $(this).children(".path").html().replace(/\\/g, '/')) + kill($(this).attr('id'), $(this).children(".path").text().replace(/\\/g, '/')) } }); @@ -157,20 +157,20 @@ $("#tasklist").on('mousemove', '.taskinfo', function () { }); Mousetrap.bind('ctrl+c', () => { - var path = $(".select").children(".path").html(); + var path = $(".select").children(".path").text(); copy(path); utools.showNotification('已复制') return false }); Mousetrap.bind('ctrl+e', () => { - var path = $(".select").children(".path").html(); + var path = $(".select").children(".path").text(); open(path); return false }); Mousetrap.bind('ctrl+r', () => { - kill($(".select").attr('id'), $(".select").children(".path").html().replace(/\\/g, '/')) + kill($(".select").attr('id'), $(".select").children(".path").text().replace(/\\/g, '/')) return false });