Load config.json at runtime

This commit is contained in:
N-Pex 2021-09-25 09:29:05 +02:00
parent 01c0eb503f
commit 589c52f4cd
11 changed files with 71 additions and 39 deletions

View file

@ -33,8 +33,6 @@
</template>
<script>
import config from "./assets/config";
export default {
name: "App",
data() {
@ -76,10 +74,10 @@ export default {
return this.$store.state.auth.user;
},
appName() {
return config.appName;
return this.$config.appName;
},
title() {
var title = this.$t(config.appName);
var title = this.$t(this.appName);
if (this.$matrix.notificationCount > 0) {
title += " [" + this.$matrix.notificationCount + "]";
}
@ -113,8 +111,11 @@ export default {
},
immediate: true,
},
title(title) {
document.title = title;
title: {
handler(title) {
document.title = title;
},
immediate: true,
},
},
};