【fix ESLint】src/components/menu

This commit is contained in:
danshihao
2023-03-03 17:42:32 +08:00
parent c65ca0929a
commit 71ca26cc00
+1 -1
View File
@@ -134,7 +134,7 @@ export default {
},
renderMenuItem (menu) {
const target = menu.meta.target || null
const tag = target && 'a' || 'router-link'
const tag = (target && 'a') || 'router-link'
let props = { to: { name: menu.name } }
if (menu.route && menu.route === '0') {
props = { to: { path: menu.path } }