Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-16 17:09:20 +08:00

Compare commits

...

3 Commits

3 changed files with 658 additions and 595 deletions

View File

@ -33,27 +33,27 @@
"vxe-table": "4.6.25"
},
"devDependencies": {
"@antfu/eslint-config": "4.10.2",
"@antfu/eslint-config": "4.11.0",
"@types/js-cookie": "3.0.6",
"@types/lodash-es": "4.17.12",
"@types/node": "22.13.11",
"@types/node": "22.13.14",
"@types/nprogress": "0.2.3",
"@types/path-browserify": "1.0.3",
"@vitejs/plugin-vue": "5.2.3",
"@vitejs/plugin-vue-jsx": "4.1.2",
"@vue/test-utils": "2.4.6",
"eslint": "9.22.0",
"eslint": "9.23.0",
"eslint-plugin-format": "1.0.1",
"happy-dom": "17.4.4",
"husky": "9.1.7",
"lint-staged": "15.5.0",
"sass": "1.78.0",
"typescript": "5.8.2",
"unocss": "66.1.0-beta.6",
"unplugin-auto-import": "19.1.1",
"unocss": "66.1.0-beta.7",
"unplugin-auto-import": "19.1.2",
"unplugin-svg-component": "0.12.1",
"unplugin-vue-components": "28.4.1",
"vite": "6.2.2",
"vite": "6.2.3",
"vite-svg-loader": "5.1.0",
"vitest": "3.0.9",
"vue-tsc": "2.2.8"

1239
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -49,7 +49,7 @@ function resolvePath(routePath: string) {
</script>
<template>
<template v-if="!alwaysShowRootMenu && theOnlyOneChild && !theOnlyOneChild.children">
<template v-if="!alwaysShowRootMenu && theOnlyOneChild && !showingChildNumber">
<Link v-if="theOnlyOneChild.meta" :to="resolvePath(theOnlyOneChild.path)">
<el-menu-item :index="resolvePath(theOnlyOneChild.path)">
<SvgIcon v-if="theOnlyOneChild.meta.svgIcon" :name="theOnlyOneChild.meta.svgIcon" class="svg-icon" />