Resolving import and var error
This commit is contained in:
parent
2968d6fcb6
commit
8ea52b1a4f
@ -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)))
|
||||||
|
Loading…
Reference in New Issue
Block a user