mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 13:37:45 +08:00
应用配置优化
This commit is contained in:
parent
86b49483c3
commit
266f8c3038
@ -14,7 +14,7 @@
|
||||
<span v-if="settingsStore.topbar.enablePageReload" class="item" @click="reload()">
|
||||
<svg-icon name="toolbar-reload" />
|
||||
</span>
|
||||
<span v-if="settingsStore.enableThemeSetting" class="item" @click="$eventBus.emit('global-theme-toggle')">
|
||||
<span v-if="settingsStore.toolbar.enableAppSetting" class="item" @click="$eventBus.emit('global-theme-toggle')">
|
||||
<svg-icon name="toolbar-theme" />
|
||||
</span>
|
||||
</div>
|
||||
|
@ -58,7 +58,9 @@ let globalSettings = {
|
||||
// 是否开启全屏
|
||||
enableFullscreen: false,
|
||||
// 是否开启页面刷新
|
||||
enablePageReload: false
|
||||
enablePageReload: false,
|
||||
// 是否开启应用配置(建议在生产环境关闭)
|
||||
enableAppSetting: false
|
||||
},
|
||||
// 底部版权
|
||||
copyright: {
|
||||
@ -68,9 +70,7 @@ let globalSettings = {
|
||||
dates: '2020-2022',
|
||||
company: 'Fantastic-admin',
|
||||
website: 'https://hooray.github.io/fantastic-admin'
|
||||
},
|
||||
// 是否开启主题配置(建议在生产环境关闭)
|
||||
enableThemeSetting: true
|
||||
}
|
||||
}
|
||||
|
||||
import settingsCustom from './settings.custom.json'
|
||||
@ -83,6 +83,7 @@ if (import.meta.env.VITE_APP_MODE === 'example' || import.meta.env.MODE === 'dev
|
||||
globalSettings.topbar.enableSidebarCollapse = true
|
||||
globalSettings.topbar.enableFullscreen = true
|
||||
globalSettings.topbar.enablePageReload = true
|
||||
globalSettings.topbar.enableAppSetting = true
|
||||
}
|
||||
|
||||
export default globalSettings
|
||||
|
Loading…
Reference in New Issue
Block a user