🐛 (share) fix share url
This commit is contained in:
@@ -84,7 +84,7 @@ export default class Home extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public get accountUrl(): string {
|
public get accountUrl(): string {
|
||||||
let url = window.location.href.replace('/setting', '')
|
let url = `${window.location.origin}${window.location.pathname}`
|
||||||
if (this.account.isPublic) {
|
if (this.account.isPublic) {
|
||||||
url = `${url}/public`
|
url = `${url}/public`
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ export default class Home extends Vue {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss' scoped>
|
<style lang="scss" scoped>
|
||||||
$padding-fab: 24px;
|
$padding-fab: 24px;
|
||||||
|
|
||||||
.is-fab {
|
.is-fab {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import uuid from 'uuid/v4'
|
import { v4 as uuid } from 'uuid'
|
||||||
import PouchDb from 'pouchdb-browser'
|
import PouchDb from 'pouchdb-browser'
|
||||||
import PouchDbAuthentication from 'pouchdb-authentication'
|
import PouchDbAuthentication from 'pouchdb-authentication'
|
||||||
import bus, { SYNC } from '@/utils/bus-event'
|
import bus, { SYNC } from '@/utils/bus-event'
|
||||||
|
|||||||
Reference in New Issue
Block a user