这个错误是为什么
flask_shop.zip
老师,没报错但是一直404,可以看下问题吗
跨域设置成功以后不报跨域问题了,但是报乍得已被 CORS 策略阻止:对印前检查请求的响应未通过访问控制检查:它没有 HTTP 正常状态。查的方法都没有解决
#写法二 data=[] for i in roles: #把meun_list 排序一下 按照id排序 role_list=i.to_dict() #字典的排序 按照id 排序 role_list['meun_list'] = sorted(role_list['meun_list'], key=lambda x: x['id']) #把role_list['meun_list']里面的children也排序一下 用一个for循环之后再去排序 for role in role_list['meun_list']: role['children'] = sorted(role['children'], key=lambda x: x['id']) data.append(role_list) return {"status":200,"msg":"查询角色成功","data":data}
让子节点里面的 children 顺序不一样 跟着课堂老师敲 发现上一级别按照id排序好了 但是子节点里面还是没有达到想要的结果。
尝试的用for循环遍历一下 然后更深一步把meun_list里面的children也做了一个排序。
感觉有点问题哈,点击上传图片后不应该直接服务器上就有图片吧,用户还没点击添加商品呢,万一用户不想添加商品了,那这个服务器上存的不就是没用的图片吗?
有点问题,只在前端页面删除的话没啥用呀,后端已经保存了所有的图片
vue_shop.zip
老师,可以看看为啥渲染失败吗
啥错误都报了
It seems like there is an error related to the algorithm "H5256" not being supported. The error message indicates that the algorithm is not recognized or implemented in the JWT library you are using.
You may need to check the JWT library documentation to see which algorithms are supported and choose one of the supported algorithms for encoding the token. Commonly used algorithms include "HS256" for HMAC with SHA-256, "RS256" for RSA with SHA-256, and "ES256" for ECDSA with SHA-256.
Make sure to update the algorithm parameter in your code to a supported algorithm to resolve this error.
这个算法不支持了
老师,我这用pycharm怎么显示这样哇,像是导入不成功,我用pycharm是因为vscode运行了,给不出网址,就一直用的这个
可以用Select V2 虚拟列表选择器吗
<el-form-item label="角色" :label-width="formLabelWidth" prop="role_id"> <el-select-v2 v-model="edit_form.role_id" :options="options" placeholder="请选择角色" size="small" /> </el-form-item>
let roles = ref([]) const options = Array.from(roles).map(item => ({ value: item.id, label: item.name, })) let edit_form = reactive({ id: null, name: null, email: null, phone: null, nick_name: null, role_id: null, }) //获取角色列表 const get_role_list = () => { api.get_roles().then(res => { roles = res.data.data console.log(Array.from(roles).map(item => item)); }) }
主要是我这么做之后是no data不知是哪里有问题呢
屏幕截图 2024-08-26 150010.png
老师为什么和视频里的不一样?
这个技术老师在帮我解决之后,后端测试和postman上面都可以成功,但是到浏览器上面的时候,因为是默认的get请求方式,所以就失败了,但是视频里面为什么就没问题
为什么flask db migrate老是报这个错
老师 模块版本号我都改成需要的了为啥还是会报错
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637