halo icon indicating copy to clipboard operation
halo copied to clipboard

Request to provide a unified request library for plugins

Open JohnNiang opened this issue 2 years ago • 2 comments

Your current Halo version

2.6.0-SNAPSHOT

Describe this feature

I found that most of plugins have data fetching requirement, but each plugin has to import request library respectively, which is not necessary because console project has imported the axios request library.

If we expose the request library in console project and plugins are able to reuse it, it will be more efficient and savable.

Additional information

/kind feature /area console /area plugin

JohnNiang avatar May 22 '23 03:05 JohnNiang

/ping @halo-dev/sig-halo-console

JohnNiang avatar Sep 04 '23 06:09 JohnNiang

目前插件中的自封axios在遇到session过期后不会引导用户重新登录,且每个插件维护一个axios也很麻烦,希望能排上日程。

longjuan avatar May 19 '24 14:05 longjuan

/assign

ruibaby avatar May 20 '24 04:05 ruibaby