摘要: 问题现象 Error in render: "TypeError: Cannot read properties of null (reading 'id')" 解决方法 this.allMenuLabel = response.data 加 results: this.allMenuLabel = 阅读全文
posted @ 2021-12-14 18:58 Jessie橙子 阅读(3986) 评论(0) 推荐(0) 编辑
摘要: 浏览器报错现象 前端检查,查看报错信息如下 Access to XMLHttpRequest at 'http://127.0.0.1:8000/categorys/' from origin 'http://localhost:8080' has been blocked by CORS poli 阅读全文
posted @ 2021-12-14 18:28 Jessie橙子 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 查不到node? 先找到安装目录 再加载下配置文件source ~/.bash_profile 参考 启动失败? 切换到前端项目 清理缓存 npm cache clean --force 切换低版本 nvm use v10 重新启动 npm run dev 启动成功 阅读全文
posted @ 2021-12-14 17:58 Jessie橙子 阅读(37) 评论(0) 推荐(0) 编辑
摘要: view新增 获取商品分类列表 class CategoryViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): """ list: 商品分类列表数据 """ # 获取全部分类 # queryset = GoodsCategory.obje 阅读全文
posted @ 2021-12-14 12:35 Jessie橙子 阅读(97) 评论(0) 推荐(0) 编辑
Live2D