1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 20:10:22 +08:00

style: lint

This commit is contained in:
zclzone
2024-06-06 18:05:36 +08:00
parent 98f9d5893a
commit a67510fe34
72 changed files with 542 additions and 389 deletions

View File

@@ -33,6 +33,7 @@
<script setup>
import { usePermissionStore } from '@/store'
const router = useRouter()
const route = useRoute()
const permissionStore = usePermissionStore()
@@ -43,7 +44,7 @@ watch(
(v) => {
breadItems.value = findMatchs(permissionStore.permissions, v)
},
{ immediate: true }
{ immediate: true },
)
function findMatchs(tree, code, parents = []) {
@@ -69,8 +70,8 @@ function handleItemClick(item) {
function getDropOptions(list = []) {
return list
.filter((item) => item.show)
.map((child) => ({
.filter(item => item.show)
.map(child => ({
label: child.name,
key: child.code,
icon: () => h('i', { class: child.icon }),