Resolving import and var error

This commit is contained in:
Félix Aime 2021-06-03 14:25:51 +02:00
parent 2968d6fcb6
commit 8ea52b1a4f

View File

@ -94,6 +94,7 @@
<script> <script>
import router from '../router' import router from '../router'
import axios from 'axios'
export default { export default {
name: 'report', name: 'report',
@ -114,7 +115,7 @@ export default {
}, },
new_capture: function() { new_capture: function() {
axios.get('/api/misc/delete-captures', { timeout: 30000 }) axios.get('/api/misc/delete-captures', { timeout: 30000 })
.then(response => { .then(() => {
router.push({ name: 'generate-ap' }) router.push({ name: 'generate-ap' })
}) })
.catch(err => (console.log(err))) .catch(err => (console.log(err)))