提交 c41855f8 编写于 作者: H hjdhnx

增加升级数据库前确认按钮

上级 53a8b877
......@@ -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
}
});
}
});
});
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册