From 35f0e05a41f9a116cdc47a3159ccb5732fce83cf Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Sat, 18 May 2019 00:50:52 -0700 Subject: [PATCH] store: unselect model & material on selection changes --- cateditor/src/pages/editor/store/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cateditor/src/pages/editor/store/index.js b/cateditor/src/pages/editor/store/index.js index 49a88d5..ad85cdc 100644 --- a/cateditor/src/pages/editor/store/index.js +++ b/cateditor/src/pages/editor/store/index.js @@ -179,10 +179,13 @@ export const store = new Vuex.Store({ selectSection(state, id) { state.selectedSectionID = id + state.selectedModelID = null + state.selectedMaterialID = null }, selectModel(state, id) { state.selectedModelID = id + state.selectedMaterialID = null }, selectMaterial(state, id) {