随笔分类 -  egg

egg启动时,报错:Ignoring invalid timezone passed to Connection的解决方案
摘要:报错信息 Ignoring invalid timezone passed to Connection: +8:00. This is currently a warning, but in future versions of MySQL2, an error will be thrown if 阅读全文
posted @ 2022-03-20 21:16 无聊猿 阅读(706) 评论(0) 推荐(0)
egg-jwt的使用
摘要:安装 npm install egg-jwt --save 配置 // config/config.default.js config.jwt = { secret: 'zidingyi', // 自定义 token 的加密条件字符串 }; // config/plugin.js jwt: { en 阅读全文
posted @ 2022-03-15 21:11 无聊猿 阅读(813) 评论(0) 推荐(0)
egg项目eslint不识别链式操作符的解决方法
摘要:项目用到链式?.结果eslint一直提示 const permissionHandleArr = positionPermissionHandle.map(item => item.permission_handle?.name); 解决方案 升级eslint-config-egg至8.1.2 说明 阅读全文
posted @ 2021-12-25 23:04 无聊猿 阅读(282) 评论(0) 推荐(0)
egg-multipart + el-upload 实现带参图片上传至阿里云OSS
摘要:egg-multipart + el-upload 实现带参图片上传至阿里云OSSegg-multipart有两种模式:file和stream el-upload参数传递有两种方式:利用自带参数data和手动添加参数 egg-multipart介绍 一、file 模式下的带参传递 1、egg配置 // config.default.js exports.multipart = { 阅读全文
posted @ 2021-12-21 01:02 无聊猿 阅读(596) 评论(0) 推荐(0)