chore: updates

This commit is contained in:
Tristan Yang
2024-03-17 11:52:06 +08:00
parent d13b7f86b7
commit 2208734019
9 changed files with 859 additions and 1034 deletions
+3 -3
View File
@@ -50,8 +50,8 @@ const uiSlice = createSlice({
const { SSEStatus, ready, online, ...rest } = action.payload;
return { ...state, ...rest };
},
setReady(state) {
state.ready = true;
setReady(state, action: PayloadAction<boolean>) {
state.ready = action.payload;
},
updateSSEStatus(state, action: PayloadAction<SSEStatus>) {
state.SSEStatus = action.payload;
@@ -87,7 +87,7 @@ const uiSlice = createSlice({
const { context = "channel", id = null, operation = "add", ...rest } = action.payload;
if (!id || !context) return;
const _key = `${context}_${id}`;
let files = state.uploadFiles[_key];
const files = state.uploadFiles[_key];
switch (operation) {
case "add":
{