remove selected category item

pull/77/head
behmaram 4 years ago
parent 7ddcfa369d
commit 6270ed6a8e

@ -14,9 +14,7 @@ export default {
REMOVE_|-MODULE-|(state, id) {
const Index = state.|-snake_module-|.findIndex(x => x.id === id);
const selectedIndex = state.|-snake_module-|_selected.findIndex(x => x.id === id);
Vue.delete(state.|-snake_module-|, Index);
Vue.delete(state.|-snake_module-|_selected, selectedIndex);
Vue.set(state, '|-snake_module-|', addIndexTreeToList(state.|-snake_module-|));
},

Loading…
Cancel
Save