🐛 (share) fix share url

This commit is contained in:
2020-08-23 11:56:34 +02:00
parent 1d88fe66ef
commit e3d0bd1008
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ export default class Home extends Vue {
}
public get accountUrl(): string {
let url = window.location.href.replace('/setting', '')
let url = `${window.location.origin}${window.location.pathname}`
if (this.account.isPublic) {
url = `${url}/public`
}
@@ -110,7 +110,7 @@ export default class Home extends Vue {
}
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
$padding-fab: 24px;
.is-fab {

View File

@@ -1,4 +1,4 @@
import uuid from 'uuid/v4'
import { v4 as uuid } from 'uuid'
import PouchDb from 'pouchdb-browser'
import PouchDbAuthentication from 'pouchdb-authentication'
import bus, { SYNC } from '@/utils/bus-event'