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); } }); });