feat: markdown auto format

This commit is contained in:
zerosoul
2022-03-25 09:40:40 +08:00
parent a9e06dcc7d
commit bdaf27f224
37 changed files with 1750 additions and 1032 deletions
+10
View File
@@ -38,9 +38,19 @@ const userMsgSlice = createSlice({
}
}
},
removeUserSession(state, action) {
const ids = Array.isArray(action.payload)
? action.payload
: [action.payload];
state.ids = state.ids.filter((id) => ids.findIndex((i) => i == id) == -1);
// ids.forEach((id) => {
// delete state.byId[id];
// });
},
},
});
export const {
removeUserSession,
resetUserMsg,
fullfillUserMsg,
addUserMsg,