display app configuration values
This commit is contained in:
parent
20a2a3ccd0
commit
5d9007f517
10 changed files with 37 additions and 33 deletions
|
@ -10,6 +10,7 @@
|
|||
<Notification />
|
||||
|
||||
<Teleport to="head">
|
||||
<title>{{ clubName }}</title>
|
||||
<link rel="icon" type="image/ico" :href="config.server_address + '/api/public/favicon.ico'" />
|
||||
<link rel="manifest" :href="config.server_address + '/api/public/manifest.webmanifest'" />
|
||||
</Teleport>
|
||||
|
@ -32,11 +33,6 @@ import { useConfigurationStore } from "@/stores/configuration";
|
|||
|
||||
<script lang="ts">
|
||||
export default defineComponent({
|
||||
watch: {
|
||||
clubName() {
|
||||
document.title = this.clubName;
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(useAuthStore, ["authCheck"]),
|
||||
...mapState(useConfigurationStore, ["clubName"]),
|
||||
|
@ -44,8 +40,6 @@ export default defineComponent({
|
|||
mounted() {
|
||||
this.configure();
|
||||
|
||||
document.title = this.clubName;
|
||||
|
||||
if (!this.authCheck && localStorage.getItem("access_token")) {
|
||||
isAuthenticatedPromise().catch(() => {
|
||||
localStorage.removeItem("access_token");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue