logout
This commit is contained in:
parent
e8a002d535
commit
6a828532cb
4 changed files with 23 additions and 0 deletions
|
|
@ -92,6 +92,9 @@
|
|||
body: new FormData(form),
|
||||
})
|
||||
},
|
||||
logout: function() {
|
||||
return api('post', './logout')
|
||||
},
|
||||
crawl: function(url) {
|
||||
return fetch('./page?url=' + url).then(function(res) {
|
||||
return res.text()
|
||||
|
|
|
|||
|
|
@ -509,6 +509,11 @@ var vm = new Vue({
|
|||
vm.refreshStats()
|
||||
})
|
||||
},
|
||||
logout: function() {
|
||||
api.logout().then(function() {
|
||||
document.location.reload()
|
||||
})
|
||||
},
|
||||
getReadable: function(item) {
|
||||
if (this.itemSelectedReadability) {
|
||||
this.itemSelectedReadability = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue