Enable shareable requests with preseted attributes in url queries

This commit is contained in:
yubathom 2019-08-27 17:13:04 -03:00
parent 4237dfc9d1
commit d71a4ba0bb

View File

@ -528,8 +528,16 @@
this.$refs.previewFrame.setAttribute('data-previewing-url', this.url);
}
}
},
setRouteQueries(queries) {
for (const key in queries) {
if (this[key]) this[key] = queries[key];
}
}
},
created() {
if (Object.keys(this.$route.query).length) this.setRouteQueries(this.$route.query);
}
}
</script>