set URL from query.

This commit is contained in:
Miroslav Šedivý
2022-09-14 22:16:44 +02:00
parent a1860d5f56
commit 80e5277fb6
2 changed files with 15 additions and 2 deletions

View File

@ -94,7 +94,12 @@
export default class extends Vue {
@Prop() readonly neko!: Neko
url: string = location.href
@Watch('neko.state.connection.url')
updateUrl(url: string) {
this.url = url
}
url: string = ''
async setUrl() {
if (this.url == '') {