Fixed reloading issue when deleting a book
This commit is contained in:
parent
ae80d91f34
commit
6b4076b29f
|
@ -242,12 +242,13 @@ export default {
|
||||||
title: this.langGeneral.success,
|
title: this.langGeneral.success,
|
||||||
text: this.langBook.deleteSuccess
|
text: this.langBook.deleteSuccess
|
||||||
})
|
})
|
||||||
|
this.loadBooks()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
this.errorNotification(e)
|
this.errorNotification(e)
|
||||||
|
this.loadBooks()
|
||||||
})
|
})
|
||||||
this.loadBooks()
|
|
||||||
this.showModal = false
|
this.showModal = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
// import auth from '../auth'
|
|
||||||
// import config from '../../static/config'
|
|
||||||
// import config from 'config'
|
|
||||||
let config = require('../../siteconfig.json')
|
let config = require('../../siteconfig.json')
|
||||||
|
|
||||||
export const HTTP = axios.create({
|
export const HTTP = axios.create({
|
||||||
|
|
Loading…
Reference in New Issue