File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,8 +285,6 @@ const store = new Vuex.Store({
285285 url : app . apiurl + url ,
286286 type : 'POST' ,
287287 data,
288- ...others ,
289-
290288 success : function ( response ) {
291289 commit ( 'notifications/addNotification' , {
292290 title : 'Action Successful' ,
@@ -306,6 +304,7 @@ const store = new Vuex.Store({
306304 root : true
307305 } )
308306 } ,
307+ ...others ,
309308 } )
310309 } ,
311310 // update data to the backend that is not attached to any model
@@ -315,8 +314,6 @@ const store = new Vuex.Store({
315314 url : app . apiurl + url ,
316315 type,
317316 data,
318- ...others ,
319-
320317 success : function ( response ) {
321318 commit ( 'notifications/addNotification' , {
322319 title : 'Update Successful' ,
@@ -336,6 +333,7 @@ const store = new Vuex.Store({
336333 root : true
337334 } )
338335 } ,
336+ ...others ,
339337 } )
340338 } ,
341339 // delete data from the backend that is not attached to any model
Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ export default {
222222 fetchCamToken (data ) {
223223 return this .$store .dispatch (' saveDataToApi' , {
224224 url: ` /download/sign` ,
225+ success : (response ) => response,
225226 data
226227 })
227228 },
You can’t perform that action at this time.
0 commit comments