File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
pages/administration/exercices Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 430430 try {
431431 const result = await this .$axios .$post (' /api/export' , {data: {exercise_ids: this .selectedExercises }});
432432
433- download (JSON .stringify (result ), " export.json" , ' application/json' );
433+ const blob = new Blob ([JSON .stringify (result )], {type: ' application/json;charset=utf-8;' });
434+
435+ download (blob , " export.json" , ' application/json;charset=utf-8;' );
434436
435437 this .$displaySuccess (" L'export a bien été effectué." );
436438 this .selectedExercises = [];
472474
473475 const result = await this .$axios .$post (' /api/export' , exportExerciseRequest );
474476
475- download (JSON .stringify (result ), " export.json" , ' application/json' );
477+ const blob = new Blob ([JSON .stringify (result )], {type: ' application/json;charset=utf-8;' });
478+
479+ download (blob , " export.json" , ' application/json;charset=utf-8;' );
476480
477481 this .$displaySuccess (" L'export a bien été effectué." );
478482 this .selectedExercises = [];
You can’t perform that action at this time.
0 commit comments