代码优化

This commit is contained in:
仲么了
2024-01-26 16:22:18 +08:00
parent 5267ae1903
commit 7cfa3c0a9e
3 changed files with 20 additions and 27 deletions

View File

@@ -147,24 +147,24 @@
<template #append>px</template> <template #append>px</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="侧边菜单默认图标"> <!-- <el-form-item label="侧边菜单默认图标">-->
<IconSelector <!-- <IconSelector-->
@change="onCommitMenuDefaultIcon($event, 'menuDefaultIcon')" <!-- @change="onCommitMenuDefaultIcon($event, 'menuDefaultIcon')"-->
:model-value="configStore.layout.menuDefaultIcon" <!-- :model-value="configStore.layout.menuDefaultIcon"-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="侧边菜单水平折叠"> <!-- <el-form-item label="侧边菜单水平折叠">-->
<el-switch <!-- <el-switch-->
@change="onCommitState($event, 'menuCollapse')" <!-- @change="onCommitState($event, 'menuCollapse')"-->
:model-value="configStore.layout.menuCollapse" <!-- :model-value="configStore.layout.menuCollapse"-->
></el-switch> <!-- ></el-switch>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="侧边菜单手风琴"> <!-- <el-form-item label="侧边菜单手风琴">-->
<el-switch <!-- <el-switch-->
@change="onCommitState($event, 'menuUniqueOpened')" <!-- @change="onCommitState($event, 'menuUniqueOpened')"-->
:model-value="configStore.layout.menuUniqueOpened" <!-- :model-value="configStore.layout.menuUniqueOpened"-->
></el-switch> <!-- ></el-switch>-->
</el-form-item> <!-- </el-form-item>-->
</div> </div>
<el-divider border-style="dashed">顶栏</el-divider> <el-divider border-style="dashed">顶栏</el-divider>

View File

@@ -20,7 +20,7 @@
/> />
</transition> </transition>
</div> </div>
<div :style='activeBoxStyle' class='nav-tabs-active-box'></div> <!-- <div :style='activeBoxStyle' class='nav-tabs-active-box'></div>-->
</div> </div>
<Contextmenu ref='contextmenuRef' :items='state.contextmenuItems' @contextmenuItemClick='onContextmenuItem' /> <Contextmenu ref='contextmenuRef' :items='state.contextmenuItems' @contextmenuItemClick='onContextmenuItem' />
</template> </template>

View File

@@ -79,9 +79,7 @@ const state = reactive({
showAdminInfoPopover: false showAdminInfoPopover: false
}) })
const onCurrentNavMenu = (status: boolean, name: string) => {
state.currentNavMenu = status ? name : ''
}
const savePng = () => { const savePng = () => {
html2canvas(document.body, { html2canvas(document.body, {
scale: 1, scale: 1,
@@ -104,11 +102,6 @@ const onFullScreen = () => {
}) })
} }
const onAdminInfo = () => {
state.showAdminInfoPopover = false
routePush({ name: 'routine/adminInfo' })
}
const handleCommand = (key: string) => { const handleCommand = (key: string) => {
console.log(key) console.log(key)
switch (key) { switch (key) {