From 33b01fa0e9aec6b2dd0c1b6c33c227e3890a5334 Mon Sep 17 00:00:00 2001 From: bridge Date: Sat, 10 Jan 2026 00:34:44 +0800 Subject: [PATCH] fix web --- web/src/api/http.ts | 4 ++++ web/src/stores/world.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/api/http.ts b/web/src/api/http.ts index e6e4742..72c3887 100644 --- a/web/src/api/http.ts +++ b/web/src/api/http.ts @@ -57,6 +57,10 @@ export const httpClient = { }, body: JSON.stringify(body), }); + }, + + delete(path: string) { + return request(path, { method: 'DELETE' }); } }; diff --git a/web/src/stores/world.ts b/web/src/stores/world.ts index 092f037..9b41980 100644 --- a/web/src/stores/world.ts +++ b/web/src/stores/world.ts @@ -4,7 +4,7 @@ import type { AvatarSummary, GameEvent, MapMatrix, RegionSummary, CelestialPheno import type { TickPayloadDTO, InitialStateDTO } from '../types/api'; import type { FetchEventsParams } from '../api/game'; import { gameApi } from '../api/game'; -import { processNewEvents, mergeAndSortEvents } from '../utils/eventHelper'; +import { processNewEvents } from '../utils/eventHelper'; export const useWorldStore = defineStore('world', () => { // --- State --- @@ -240,6 +240,7 @@ export const useWorldStore = defineStore('world', () => { content: e.content, year: e.year, month: e.month, + timestamp: e.month_stamp, monthStamp: e.month_stamp, relatedAvatarIds: e.related_avatar_ids, isMajor: e.is_major,