halo-sigs / plugin-migrate

支持多种平台的数据迁移插件
https://halo.run/store/apps/app-TlUBt
GNU General Public License v3.0
8 stars 5 forks source link

refactor: use globally provided axios instance #52

Closed ruibaby closed 4 months ago

ruibaby commented 4 months ago

使用 Halo 全局提供的 axios 实例请求接口,不再需要在插件中处理请求异常逻辑,并且可以减小包体积。

/kind improvement

使用 Halo 全局提供的 axios 实例请求接口
f2c-ci-robot[bot] commented 4 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-sigs/plugin-migrate/blob/main/OWNERS)~~ [guqing] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment