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.
1 parent 6036266 commit d69b67eCopy full SHA for d69b67e
src/store/actions.js
@@ -277,8 +277,11 @@ const actions = {
277
278
// Loading ///////////////////////////////////////////////////////
279
280
- [types.openProject]: ({ commit }, payload) => {
+ [types.openProject]: ({ commit, state }, payload) => {
281
// open project imagePath, componentPath, routePath
282
+ payload.userProps.forEach((prop)=>{commit(types.CREATE_PROP, prop)})
283
+ payload.userActions.forEach((action)=>{commit(types.CREATE_ACTION, action)})
284
+ payload.userState.forEach((state)=>{commit(types.CREATE_STATE, state)})
285
commit(types.SET_IMAGE_PATH, payload.imagePath);
286
commit(types.SET_COMPONENT_MAP, payload.componentMap);
287
commit(types.SET_ROUTES, payload.routes);
0 commit comments