biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -1,14 +1,16 @@
|
|||
const RemoteUserResolver = {
|
||||
data: () => ({
|
||||
error: false
|
||||
error: false,
|
||||
}),
|
||||
mounted () {
|
||||
mounted() {
|
||||
this.redirect()
|
||||
},
|
||||
methods: {
|
||||
redirect () {
|
||||
const acct = this.$route.params.username + '@' + this.$route.params.hostname
|
||||
this.$store.state.api.backendInteractor.fetchUser({ id: acct })
|
||||
redirect() {
|
||||
const acct =
|
||||
this.$route.params.username + '@' + this.$route.params.hostname
|
||||
this.$store.state.api.backendInteractor
|
||||
.fetchUser({ id: acct })
|
||||
.then((externalUser) => {
|
||||
if (externalUser.error) {
|
||||
this.error = true
|
||||
|
|
@ -17,15 +19,15 @@ const RemoteUserResolver = {
|
|||
const id = externalUser.id
|
||||
this.$router.replace({
|
||||
name: 'external-user-profile',
|
||||
params: { id }
|
||||
params: { id },
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.error = true
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default RemoteUserResolver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue