refactor: request无需传入请求方式

This commit is contained in:
overwriter
2024-07-31 08:55:35 +08:00
parent 0fc4057a81
commit c1011b8602
273 changed files with 146 additions and 903 deletions

View File

@@ -5,7 +5,6 @@ module.exports = (query, request) => {
const key =
['2017', '2018', '2019'].indexOf(query.year) > -1 ? 'userdata' : 'data'
return request(
'POST',
`/api/activity/summary/annual/${query.year}/${key}`,
data,
createOption(query),