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