diff --git a/templates/settings.html b/templates/settings.html
index 5323e4aad6cbf0a3f78f849f22265785f49d5427..7b4ff21bae17f093db333381fe5f9972c29ebde0 100644
--- a/templates/settings.html
+++ b/templates/settings.html
@@ -47,7 +47,8 @@
console.log(this);
});
$('#update_db').click(function (){
- $.get("/admin/update_db",function(data,status){
+ if(confirm('确定要升级数据库?判断标准为是否正常打开缓存文件列表-查看界面,如果正常就不需要进行此操作')){
+ $.get("/admin/update_db",function(data,status){
console.log(data);
if(data.code === 200){
alert(data.msg);
@@ -58,6 +59,7 @@
return false
}
});
+ }
});
});