feat: 客户分享链接列表

This commit is contained in:
rd
2025-08-07 18:05:27 +08:00
parent de55e00196
commit d07f773123
17 changed files with 678 additions and 115 deletions

View File

@ -1,20 +0,0 @@
/*
* @Author: RenXiaoDong
* @Date: 2025-06-19 01:45:53
*/
import { appRoutes } from '../routes';
const mixinRoutes = [...appRoutes];
const appClientMenus = mixinRoutes.map((el) => {
const { name, path, meta, redirect, children } = el;
return {
name,
path,
meta,
redirect,
children,
};
});
export default mixinRoutes;

View File

@ -4,7 +4,6 @@
*/
import { createRouter, createWebHistory } from 'vue-router';
import { appRoutes } from './routes';
import { NOT_FOUND_ROUTE } from './routes/base';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
import { MENU_GROUP_IDS } from './constants';
@ -35,27 +34,18 @@ export const router = createRouter({
id: MENU_GROUP_IDS.WORK_BENCH_ID,
},
},
...appRoutes,
{
path: '/permission',
name: 'permission',
component: () => import('@/views/components/permission/choose-enterprise.vue'),
path: '/:pathMatch(.*)*',
name: 'notFound',
component: () => import('@/layouts/NotFound.vue'),
meta: {
requiresAuth: false,
requireLogin: true,
hideInMenu: true,
hideSidebar: true,
},
},
// {
// path: '/auth',
// name: 'auth',
// component: () => import('@/views/components/permission/auth.vue'),
// meta: {
// requiresAuth: false,
// requireLogin: true,
// },
// },
...appRoutes,
// REDIRECT_MAIN,
NOT_FOUND_ROUTE,
],
scrollBehavior() {
return { top: 0 };

View File

@ -1,35 +0,0 @@
import type { RouteRecordRaw } from 'vue-router';
import { REDIRECT_ROUTE_NAME } from '@/router/constants';
// export const REDIRECT_MAIN: RouteRecordRaw = {
// path: '/redirect',
// name: 'redirect',
// meta: {
// requiresAuth: false,
// requireLogin: false,
// hideInMenu: true,
// },
// children: [
// {
// path: '/redirect/:path',
// name: REDIRECT_ROUTE_NAME,
// component: () => import('@/layouts/Basic.vue'),
// meta: {
// requiresAuth: false,
// requireLogin: false,
// hideInMenu: true,
// },
// },
// ],
// };
export const NOT_FOUND_ROUTE: RouteRecordRaw = {
path: '/:pathMatch(.*)*',
name: 'notFound',
component: () => import('@/layouts/NotFound.vue'),
meta: {
requiresAuth: false,
hideInMenu: true,
hideSidebar: true,
},
};

View File

@ -111,6 +111,28 @@ const COMPONENTS: AppRouteRecordRaw[] = [
},
],
},
{
path: '/explore/list/:shareCode',
name: 'ExploreList',
meta: {
locale: '分享链接列表',
requiresAuth: false,
requireLogin: false,
roles: ['*'],
},
component: () => import('@/views/creative-generation-workshop/explore/list/index.vue'),
},
{
path: '/explore/detail/:shareCode/:id',
name: 'ExploreDetail',
meta: {
locale: '分享链接详情',
requiresAuth: false,
requireLogin: false,
roles: ['*'],
},
component: () => import('@/views/creative-generation-workshop/explore/detail/index.vue'),
},
];
export default COMPONENTS;