Update API endpoints and enhance UI components. Changed appid in manifest.json, modified profile and log update methods from PUT to POST in profile.js and smoke.js, respectively. Added new statistics retrieval function in smoke.js and improved the smoke record dialog with updated styles and validation logic. Updated configuration for development environment and refined documentation for health recovery and savings calculations.

This commit is contained in:
nepiedg
2026-01-26 22:16:20 +08:00
parent 35405efcdf
commit 0d482e3a1c
11 changed files with 1103 additions and 509 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ export function getProfile() {
}
export function updateProfile(data) {
return request.put('/smoke/profile', data)
return request.post('/smoke/profile', data)
}
+5 -1
View File
@@ -25,7 +25,7 @@ export function createLog(data) {
}
export function updateLog(id, data) {
return request.put(`/smoke/logs/${id}`, data)
return request.post(`/smoke/logs/${id}`, data)
}
export function deleteLog(id) {
@@ -43,3 +43,7 @@ export function getAiAdvice(date) {
export function unlockAiAdvice(data) {
return request.post('/smoke/ai/advice_unlocks', data)
}
export function getStats(params = {}) {
return request.get('/smoke/stats', params)
}