| | |
| | | <el-switch v-model="sidebarLogo" class="drawer-switch" /> |
| | | </div> |
| | | |
| | | <div class="drawer-item"> |
| | | <span>动态标题</span> |
| | | <el-switch v-model="dynamicTitle" class="drawer-switch" /> |
| | | </div> |
| | | |
| | | <el-divider/> |
| | | |
| | | <el-button size="small" type="primary" plain icon="el-icon-document-add" @click="saveSetting">保存配置</el-button> |
| | |
| | | }) |
| | | } |
| | | }, |
| | | dynamicTitle: { |
| | | get() { |
| | | return this.$store.state.settings.dynamicTitle |
| | | }, |
| | | set(val) { |
| | | this.$store.dispatch('settings/changeSetting', { |
| | | key: 'dynamicTitle', |
| | | value: val |
| | | }) |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | themeChange(val) { |
| | |
| | | "tagsView":${this.tagsView}, |
| | | "fixedHeader":${this.fixedHeader}, |
| | | "sidebarLogo":${this.sidebarLogo}, |
| | | "dynamicTitle":${this.dynamicTitle}, |
| | | "sideTheme":"${this.sideTheme}", |
| | | "theme":"${this.theme}" |
| | | }` |