diff --git a/templates/static/js/script.js b/templates/static/js/script.js index 86c0e12..a1c01ff 100644 --- a/templates/static/js/script.js +++ b/templates/static/js/script.js @@ -91,6 +91,7 @@ $(document).ready(function() { str = base64encode($(this).attr('data-params')); } str = $(this).attr('data-type') + '://' + str; + layer.closeAll(); layer.open({ type: 1, title: $(this).attr('data-title'), @@ -100,7 +101,7 @@ $(document).ready(function() { closeBtn: 1, shift: 2, shadeClose: true, - content: '
请使用 Shadowsocks 客户端进行扫描
' + content: '
请使用 Shadowsocks 客户端进行扫描
' }); }); });