Merge pull request #704 from rocboss/jc/orziz

修改网络请求
pull/707/head
orzi! 2 months ago committed by GitHub
commit 1a02fc3ac2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -78,14 +78,6 @@ export function createApi<T>(): Readonly<T> {
// 如果最后一条路径是 _self 则代表不需要它,直接去掉它
if (_path[_path.length - 1] === "_self") _path.pop();
if (method === "get") {
return request({
method,
url: _path.join('/'),
params: args[0],
});
}
return request({
method,
url: _path.join('/'),

Loading…
Cancel
Save