🐛 Fixed build + refactored all js files

This commit is contained in:
Liyas Thomas
2019-11-27 06:54:32 +05:30
parent dcf1966719
commit 36568d5720
6 changed files with 87 additions and 89 deletions

View File

@@ -925,7 +925,7 @@ export default {
if (status && this.rawParams === "") this.rawParams = "{}";
else this.setRouteQueryState();
},
"response.body": (val)=> {
"response.body": function(val) {
if (
this.response.body === "(waiting to send request)" ||
this.response.body === "Loading..."
@@ -949,7 +949,7 @@ export default {
}
},
params: {
handler: (newValue)=> {
handler: function(newValue) {
if (!this.paramsWatchEnabled) {
this.paramsWatchEnabled = true;
return;
@@ -1989,7 +1989,7 @@ export default {
},
mounted() {
this.observeRequestButton();
this._keyListener = (e)=> {
this._keyListener = function(e) {
if (e.key === "g" && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
this.sendRequest();

View File

@@ -439,7 +439,7 @@ export default {
}
},
updated: function() {
this.$nextTick(()=> {
this.$nextTick(function() {
const divLog = document.getElementById("log");
divLog.scrollBy(0, divLog.scrollHeight + 100);
});