mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-22 23:50:22 +08:00
style: lint
This commit is contained in:
@@ -11,7 +11,7 @@ import { router } from '@/router'
|
||||
const permission = {
|
||||
mounted(el, binding) {
|
||||
const currentRoute = unref(router.currentRoute)
|
||||
const btns = currentRoute.meta?.btns?.map((item) => item.code) || []
|
||||
const btns = currentRoute.meta?.btns?.map(item => item.code) || []
|
||||
if (!btns.includes(binding.value)) {
|
||||
el.remove()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user