We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 873fdbf + c8ef88a commit fb7e830Copy full SHA for fb7e830
src/store/actions.js
@@ -277,8 +277,10 @@ const actions = {
277
278
// Loading ///////////////////////////////////////////////////////
279
280
- [types.openProject]: ({ commit }, payload) => {
281
- // open project imagePath, componentPath, routePath
+ [types.openProject]: ({ commit, state }, payload) => {
+ payload.userProps.forEach((prop)=>{commit(types.CREATE_PROP, prop)})
282
+ payload.userActions.forEach((action)=>{commit(types.CREATE_ACTION, action)})
283
+ payload.userState.forEach((state)=>{commit(types.CREATE_STATE, state)})
284
commit(types.SET_IMAGE_PATH, payload.imagePath);
285
commit(types.SET_COMPONENT_MAP, payload.componentMap);
286
commit(types.SET_ROUTES, payload.routes);
0 commit comments