1 Star 12 Fork 1

Rong姐姐好可爱/egg-axios-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app.js 674 Bytes
一键复制 编辑 原始数据 按行查看 历史
fairy爱哭又可爱 提交于 2022-07-25 11:23 +08:00 . feat: 更新文档、证书
'use strict';
/**
* @description load plugin egg-axios-plus
* @author Taylor
* @github https://github.com/mmdapl
*/
const loader = require('./lib/axios_loader.js');
module.exports = async app => {
// Combined with egg framework last configuration, load egg-axios-plus
const { axiosPlus } = app.config;
const startTime = new Date().getTime();
if (axiosPlus.app) {
await loader(app);
// 计算启动耗时
const intervalTime = new Date().getTime() - startTime;
app.logger.info(
`[egg-axios-plus] : The plugin took a total of ${intervalTime}ms to start in app.js , Thank you for using egg-axios-plus and wish you a happy life`
);
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mmdapl/egg-axios-plus.git
git@gitee.com:mmdapl/egg-axios-plus.git
mmdapl
egg-axios-plus
egg-axios-plus
master

搜索帮助