🐛 (share) fix share url
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user