大量的代码格式化
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 1m10s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 1m10s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -99,7 +99,7 @@ export const updateTransaction = (data) => {
|
||||
*/
|
||||
export const deleteTransaction = (id) => {
|
||||
return request({
|
||||
url: `/TransactionRecord/DeleteById`,
|
||||
url: '/TransactionRecord/DeleteById',
|
||||
method: 'post',
|
||||
params: { id }
|
||||
})
|
||||
@@ -118,7 +118,6 @@ export const getTransactionsByDate = (date) => {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 注意:分类相关的API已迁移到 transactionCategory.js
|
||||
// 请使用 getCategoryList 等新接口
|
||||
|
||||
@@ -155,12 +154,12 @@ export const smartClassify = (transactionIds = []) => {
|
||||
const baseURL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:5071/api'
|
||||
const token = localStorage.getItem('token')
|
||||
const url = `${baseURL}/TransactionRecord/SmartClassify`
|
||||
|
||||
|
||||
return fetch(url, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': `Bearer ${token}`
|
||||
Authorization: `Bearer ${token}`
|
||||
},
|
||||
body: JSON.stringify({ transactionIds })
|
||||
})
|
||||
@@ -261,4 +260,4 @@ export const parseOneLine = (text) => {
|
||||
method: 'post',
|
||||
data: { text }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user