Merge pull request #72 from yubathom/master

Enable shareable requests with parameters in url queries
This commit is contained in:
Liyas Thomas 2019-08-30 07:26:21 +05:30 committed by GitHub
commit cc971e7e6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -567,7 +567,15 @@
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);
}
}