perf: 优化宝塔网站部署插件远程获取数据的提示

This commit is contained in:
xiaojunnuo
2024-10-10 14:28:46 +08:00
parent cbd6abb29d
commit 2a3ca9f552
6 changed files with 49 additions and 29 deletions
@@ -14,7 +14,7 @@ export type RequestHandleReq<T = any> = {
input: T;
};
export async function doRequest(req: RequestHandleReq, opts?: any = {}) {
export async function doRequest(req: RequestHandleReq, opts: any = {}) {
const url = req.type === "access" ? "/pi/handle/access" : "/pi/handle/plugin";
const { typeName, action, data, input } = req;
const res = await request({