老师,我用ElMessageBox写可以吗,好像更方便一点?
//删除用户 const handleDelete = (index, row) => { userID = row.id ElMessageBox.confirm( '确认要删除账号为【' + row.name + '】,昵称为【'+row.nick_name+'】的用户吗', '删除用户', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning', } ) .then(() => { api.delete_user(userID).then(res => { if (res.data.status == 200) { ElMessage({ type: 'success', message: '删除成功', }) get_user_list()//刷新列表 } }) }) .catch(() => { ElMessage({ type: 'info', message: '取消删除', }) }) }
我使用了登录的token ,但是还是显示token无效,也没有设置有效期
这个要怎么设置才会显示
Guys
What should we do when being given "Error: Could not locate a Flask application."?
Type 'set FLASK_APP=work_file.py' not $env:FLASK_APP="manager"
After that you can:
flask db init: initialize db sync file
flask db migrate: generate db table file
flask db upgrade: sync db
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637