chore: 新增VITE_HIDE_GLOBAL_SETTING配置

This commit is contained in:
kailong321200875
2024-06-20 15:31:54 +08:00
parent 49451ae606
commit d04c67f0ea
7 changed files with 19 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ const collapse = computed(() => appStore.getCollapse)
const layout = computed(() => appStore.getLayout)
const hideSetting = computed(() => import.meta.env.VITE_HIDE_GLOBAL_SETTING === 'true')
const handleClickOutside = () => {
appStore.setCollapse(true)
}
@@ -59,7 +61,7 @@ export default defineComponent({
<Backtop></Backtop>
<Setting></Setting>
{!unref(hideSetting) && <Setting></Setting>}
</section>
)
}