style: 优化第四种布局

This commit is contained in:
kailong321200875
2022-10-10 16:06:54 +08:00
parent ac981bb24e
commit 122fa62d85
7 changed files with 84 additions and 18 deletions

View File

@@ -115,6 +115,13 @@ const dynamicRouterChange = (show: boolean) => {
appStore.setDynamicRouter(show)
}
// 固定菜单
const fixedMenu = ref(appStore.getFixedMenu)
const fixedMenuChange = (show: boolean) => {
appStore.setFixedMenu(show)
}
const layout = computed(() => appStore.getLayout)
watch(
@@ -198,5 +205,10 @@ watch(
<span class="text-14px">{{ t('setting.dynamicRouter') }}</span>
<ElSwitch v-model="dynamicRouter" @change="dynamicRouterChange" />
</div>
<div class="flex justify-between items-center">
<span class="text-14px">{{ t('setting.fixedMenu') }}</span>
<ElSwitch v-model="fixedMenu" @change="fixedMenuChange" />
</div>
</div>
</template>