From 810c8cce852bc19856595d6385098396a3f9803c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E6=96=87=E7=A5=BA?= Date: Wed, 7 Feb 2018 14:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E7=BB=93=E6=9D=9F=E7=9A=84?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=8F=90=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/js/index.js | 5 +++++ src/static/manage.js | 1 + 2 files changed, 6 insertions(+) diff --git a/src/static/js/index.js b/src/static/js/index.js index c973466..46520ce 100644 --- a/src/static/js/index.js +++ b/src/static/js/index.js @@ -178,6 +178,11 @@ class Index { if (resp.status === 200) { this.stopLottery(resp.data); this.running = false; + }else{ + this.running=false; + this.canvas3DTagCloud.stop(); + layer.alert(resp.msg); + } }); }); diff --git a/src/static/manage.js b/src/static/manage.js index 5c4164e..11ecacc 100644 --- a/src/static/manage.js +++ b/src/static/manage.js @@ -79,6 +79,7 @@ $(function () { BS.fetch('/reset').then(resp => { if (resp.status === 200) { layer.close(index); + window.location.reload(1); } }); });