feat: 설문조사 정보도 DB정보를 이용하여 한번만 처리
This commit is contained in:
@@ -459,7 +459,7 @@ watch(refreshCounter, async () => {
|
||||
}
|
||||
|
||||
const lastVoteID = response.global.lastVoteID;
|
||||
if (lastVoteID > lastVoteState.value) {
|
||||
if (lastVoteID > lastVoteState.value && lastVoteID > (response.aux.myLastVote ?? 0)) {
|
||||
lastVoteState.value = lastVoteID;
|
||||
toasts.warning(
|
||||
{
|
||||
|
||||
@@ -221,6 +221,9 @@ export type GetFrontInfoResponse = {
|
||||
} | null
|
||||
>;
|
||||
};
|
||||
aux: {
|
||||
myLastVote?: number;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user