06 2021 档案

摘要:安装axios: npm install --save axios 配置nuxt.config.js modules: [ '@nuxtjs/axios', '@nuxtjs/proxy', ], axios: { proxy: true // 表示开启代理 }, proxy: { //过滤 web 阅读全文
posted @ 2021-06-17 10:21 橙子皮! 阅读(271) 评论(0) 推荐(0)
摘要:1、检查环境(安装环境可查看相关的教程),查看是否安装node和vue,依次执行下列语句: node -vvue -V npm install vue-cli -g 2、初始化一个nuxt项目: vue init nuxt-community/starter-template nuxt-ssr-de 阅读全文
posted @ 2021-06-10 17:49 橙子皮! 阅读(91) 评论(0) 推荐(0)
摘要:tortoise-orm官方 https://tortoise-orm.readthedocs.io/en/latest/models.html?highlight=insert#tortoise.models.Model.bulk_create 异步 类方法 bulk_create(对象, bat 阅读全文
posted @ 2021-06-09 14:46 橙子皮! 阅读(1993) 评论(0) 推荐(0)
摘要:aerich是一种ORM迁移工具,需要结合tortoise异步orm框架使用 官方文档:https://github.com/tortoise/aerich/blob/dev/README.md 安装 pip install aerich 新建settings.py文件夹 -- 添加aerich.m 阅读全文
posted @ 2021-06-09 14:33 橙子皮! 阅读(2887) 评论(0) 推荐(1)
摘要:转载:https://www.cnblogs.com/luckinlee/p/11622284.html 官方地址:https://tortoise-orm.readthedocs.io/en/latest/models.html 阅读全文
posted @ 2021-06-01 11:07 橙子皮! 阅读(361) 评论(0) 推荐(0)