新增 luxsin-controller,更新 wiki
This commit is contained in:
@@ -88,6 +88,16 @@
|
||||
<span>分享日志</span>
|
||||
</el-menu-item>
|
||||
</el-sub-menu>
|
||||
<el-sub-menu index="toolbox">
|
||||
<template #title>
|
||||
<el-icon><Tools /></el-icon>
|
||||
<span>工具箱</span>
|
||||
</template>
|
||||
<el-menu-item index="/toolbox/luxsin-controller">
|
||||
<el-icon><Operation /></el-icon>
|
||||
<span>luxsin-controller</span>
|
||||
</el-menu-item>
|
||||
</el-sub-menu>
|
||||
</el-menu>
|
||||
</div>
|
||||
</div>
|
||||
@@ -153,7 +163,7 @@
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Headset, Collection, List, Upload, Document, Share, User, Warning, Aim } from '@element-plus/icons-vue'
|
||||
import { Headset, Collection, List, Upload, Document, Share, User, Warning, Aim, Tools, Operation } from '@element-plus/icons-vue'
|
||||
import { clearAuth, getUser, isSuperAdmin } from '@/utils/auth'
|
||||
import TabsView from '@/components/TabsView.vue'
|
||||
import SidebarLogo from '@/components/SidebarLogo.vue'
|
||||
@@ -175,6 +185,7 @@ function resolveOpenedMenus(path) {
|
||||
if (path.startsWith('/brand') || path.startsWith('/model')) return ['1']
|
||||
if (path.startsWith('/ota') || path.startsWith('/blacklist') || path.startsWith('/ota-target-device')) return ['upgrade']
|
||||
if (path.startsWith('/share-code')) return ['share-code']
|
||||
if (path.startsWith('/toolbox')) return ['toolbox']
|
||||
return []
|
||||
}
|
||||
|
||||
@@ -189,7 +200,8 @@ watch(
|
||||
const railNavItems = [
|
||||
{ title: '耳机管理', icon: Headset },
|
||||
{ title: '升级管理', icon: Upload },
|
||||
{ title: '分享码', icon: Share }
|
||||
{ title: '分享码', icon: Share },
|
||||
{ title: '工具箱', icon: Tools }
|
||||
]
|
||||
|
||||
function handleRailClick() {
|
||||
@@ -207,6 +219,7 @@ const breadcrumbSection = computed(() => {
|
||||
if (path.startsWith('/brand') || path.startsWith('/model')) return '耳机管理'
|
||||
if (path.startsWith('/ota') || path.startsWith('/blacklist') || path.startsWith('/ota-target-device')) return '升级管理'
|
||||
if (path.startsWith('/share-code')) return '分享码'
|
||||
if (path.startsWith('/toolbox')) return '工具箱'
|
||||
if (path.startsWith('/system')) return '系统管理'
|
||||
return ''
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user