fix loading bookmarklet
This commit is contained in:
parent
8b61d8c504
commit
ed76f020c5
@ -708,15 +708,12 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadBookmarklet: function(id_bkmk) {
|
loadBookmarklet: function(id_bkmk) {
|
||||||
let uri = window.location.search.substring(1);
|
|
||||||
let params = new URLSearchParams(uri);
|
|
||||||
q = params.get("id")
|
|
||||||
this.error = undefined
|
this.error = undefined
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$http.get("{% url 'api:bookmarkletimport-list' %}?id=" + id_bkmk ).then((response) => {
|
this.$http.get("{% url 'api:bookmarkletimport-detail' 1237654 %}".replace('1237654', id_bkmk)).then((response) => {
|
||||||
this.automatic = false
|
this.automatic = false
|
||||||
this.source_data = response.data[0]['html']
|
this.source_data = response.data['html']
|
||||||
this.remote_url = response.data[0]['url']
|
this.remote_url = response.data['url']
|
||||||
this.loadRecipe()
|
this.loadRecipe()
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
this.error = err.data
|
this.error = err.data
|
||||||
|
Loading…
Reference in New Issue
Block a user