File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ let redoMixin = {
123
123
ignoredActions .has (this .doneAction [this .doneAction .length - 1 ].type )){
124
124
this .undoneAction .push (this .doneAction .pop ())
125
125
}
126
+ // if we get here, that means we have undone all "useless" actions
127
+ // so we have to do one more final pop and push, have to make sure it isn't null though
126
128
let finalPop = this .doneAction .pop ()
127
129
if (finalPop !== undefined ){
128
130
this .undoneAction .push (finalPop)
129
131
}
130
132
}
131
- // if we get here, that means we have undone all "useless" actions
132
- // so we have to do one more final pop and push, have to make sure it isn't null though
133
133
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -424,7 +424,9 @@ const mutations = {
424
424
*/
425
425
[ types . IMPORT_IMAGE ] : ( state , payload ) => {
426
426
console . log ( `import image invoked. image: ${ payload . img } ${ payload . route } ` )
427
- state . imagePath = { ...state . imagePath , [ payload . route ] : payload . img }
427
+
428
+ console . log ( payload . img . replace ( / \\ / g, "/" ) )
429
+ state . imagePath = { ...state . imagePath , [ payload . route ] : payload . img . replace ( / \\ / g, "/" ) }
428
430
// state.imagePath[payload.route] = payload.img
429
431
} ,
430
432
[ types . CLEAR_IMAGE ] : ( state , payload ) => {
You can’t perform that action at this time.
0 commit comments