From 0daa45966e0ad21defaeb5e09ccafa3d6d8a4ff9 Mon Sep 17 00:00:00 2001 From: RobinzZH Date: Thu, 21 Jun 2018 17:52:39 +0800 Subject: [PATCH] chore(logview): triple-clicking to highlight url --- bin/tsw/util/auto-report/src/view.tmpl.html | 10 +++++++++- bin/tsw/util/auto-report/tmpl.js | 17 +++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/bin/tsw/util/auto-report/src/view.tmpl.html b/bin/tsw/util/auto-report/src/view.tmpl.html index 655e4f6e..ecfa7940 100644 --- a/bin/tsw/util/auto-report/src/view.tmpl.html +++ b/bin/tsw/util/auto-report/src/view.tmpl.html @@ -153,7 +153,15 @@  
<%=(logText)%>
diff --git a/bin/tsw/util/auto-report/tmpl.js b/bin/tsw/util/auto-report/tmpl.js index 6dd990e6..2221cccc 100644 --- a/bin/tsw/util/auto-report/tmpl.js +++ b/bin/tsw/util/auto-report/tmpl.js @@ -384,8 +384,21 @@ define(function(require, exports, module) { __p.push('&fileFormat=har"\n target="_blank" title="99%的人都点了这个按钮!">点击下载 云抓包™.har\n\n  \n \n \n
');
+                    _p(titleText.substring(matchHttp));
+                    __p.push('');
+                } else {
+                    __p.push('                    ');
+                } __p.push('                

\n \n
');
                 _p((logText));