提交 | 用户 | 时间
|
fd2207
|
1 |
<template> |
懒 |
2 |
<div id="app"> |
|
3 |
<router-view /> |
|
4 |
<theme-picker /> |
|
5 |
</div> |
|
6 |
</template> |
|
7 |
|
|
8 |
<script> |
|
9 |
import ThemePicker from "@/components/ThemePicker"; |
|
10 |
|
|
11 |
export default { |
|
12 |
name: "App", |
|
13 |
components: { ThemePicker }, |
|
14 |
metaInfo() { |
|
15 |
return { |
|
16 |
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, |
|
17 |
titleTemplate: title => { |
|
18 |
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE |
|
19 |
} |
|
20 |
} |
|
21 |
} |
|
22 |
}; |
|
23 |
</script> |
|
24 |
<style scoped> |
|
25 |
#app .theme-picker { |
|
26 |
display: none; |
|
27 |
} |
|
28 |
</style> |