Load config.json at runtime
This commit is contained in:
parent
01c0eb503f
commit
589c52f4cd
11 changed files with 71 additions and 39 deletions
13
src/App.vue
13
src/App.vue
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue