Remove all uses of process.env.domain (#247)

* Remove all uses of `process.env.domain`

* Remove broken link on logout on revoke token page
This commit is contained in:
venashial 2021-05-28 22:39:35 -07:00 committed by GitHub
parent d0df105dda
commit bb8fd5500d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -37,7 +37,7 @@ export default async function (context) {
if (!context.$auth.user) {
return context.redirect(
`${context.$axios.defaults.baseURL}auth/init?url=${process.env.domain}${context.route.fullPath}`
`${context.$axios.defaults.baseURL}auth/init?url=${context.store.app.$config.utils.domain}${context.route.fullPath}`
)
}
}

View File

@ -51,11 +51,9 @@
export default {
components: {},
methods: {
async logout() {
logout() {
this.$cookies.set('auth-token-reset', true)
await this.$router.replace(
`auth/init?url=${process.env.domain}${this.$route.fullPath}`
)
window.location.href = '/'
},
},
}