Merge branch 'ymf' of https://newgitea.sxczgkj.cn/czg_team/cashier-web into gyq
This commit is contained in:
@@ -29,11 +29,7 @@
|
|||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</AppLink>
|
</AppLink>
|
||||||
</template>
|
</template>
|
||||||
<template
|
<template v-else-if="item.children && hasOneShowingChild(item.children, item)">
|
||||||
v-else-if="
|
|
||||||
item.children && item.children.length == 1 && hasOneShowingChild(item.children, item)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<AppLink
|
<AppLink
|
||||||
v-if="onlyOneChild.meta"
|
v-if="onlyOneChild.meta"
|
||||||
:to="{
|
:to="{
|
||||||
@@ -124,7 +120,6 @@ function hasOneShowingChild(children: RouteRecordRaw[] = [], parent: RouteRecord
|
|||||||
// 过滤出可见子节点
|
// 过滤出可见子节点
|
||||||
const showingChildren = children.filter((route: RouteRecordRaw) => {
|
const showingChildren = children.filter((route: RouteRecordRaw) => {
|
||||||
if (!route.meta?.hidden) {
|
if (!route.meta?.hidden) {
|
||||||
console.log(route);
|
|
||||||
onlyOneChild.value = route;
|
onlyOneChild.value = route;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { App } from "vue";
|
import type { App } from "vue";
|
||||||
import { createRouter, createWebHashHistory, type RouteRecordRaw } from "vue-router";
|
import { createRouter, createWebHashHistory, createWebHistory, type RouteRecordRaw } from "vue-router";
|
||||||
|
|
||||||
export const Layout = () => import("@/layout/index.vue");
|
export const Layout = () => import("@/layout/index.vue");
|
||||||
|
|
||||||
@@ -676,7 +676,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||||||
* 创建路由
|
* 创建路由
|
||||||
*/
|
*/
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory(),
|
history: createWebHistory(),
|
||||||
routes: constantRoutes,
|
routes: constantRoutes,
|
||||||
// 刷新时,滚动条位置还原
|
// 刷新时,滚动条位置还原
|
||||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||||
|
|||||||
3
src/views/marketing_center/super_vip/index.vue
Normal file
3
src/views/marketing_center/super_vip/index.vue
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<div>超级会员管理</div>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user