feat: sider调整
This commit is contained in:
@ -6,7 +6,7 @@ import type { Router } from 'vue-router';
|
||||
import NProgress from 'nprogress';
|
||||
import { goUserLogin } from '@/utils/user';
|
||||
// import router from '@/router';
|
||||
import { checkRoutePermission } from '@/permission/permission';
|
||||
// import { checkRoutePermission } from '@/permission/permission';
|
||||
|
||||
import { useUserStore } from '@/stores/modules/user';
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ export const router = createRouter({
|
||||
name: 'Home',
|
||||
component: () => import('@/views/home/index.vue'),
|
||||
meta: {
|
||||
hideSidebar: true,
|
||||
requiresAuth: false,
|
||||
requireLogin: true,
|
||||
id: MENU_GROUP_IDS.WORK_BENCH_ID,
|
||||
|
||||
@ -1,89 +1,89 @@
|
||||
import { IconBookmark } from '@arco-design/web-vue/es/icon';
|
||||
import type { AppRouteRecordRaw } from '../types';
|
||||
import { MENU_GROUP_IDS } from '@/router/constants';
|
||||
// import { IconBookmark } from '@arco-design/web-vue/es/icon';
|
||||
// import type { AppRouteRecordRaw } from '../types';
|
||||
// import { MENU_GROUP_IDS } from '@/router/constants';
|
||||
|
||||
const COMPONENTS: AppRouteRecordRaw[] = [
|
||||
{
|
||||
path: '/dataEngine',
|
||||
name: 'DataEngine',
|
||||
redirect: 'dataEngine/hotTranslation',
|
||||
meta: {
|
||||
locale: '全域数据引擎',
|
||||
icon: IconBookmark,
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
id: MENU_GROUP_IDS.DATA_ENGINE_ID,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'hotTranslation',
|
||||
name: 'DataEngineHotTranslation',
|
||||
meta: {
|
||||
locale: '行业热门话题洞察',
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
component: () => import('@/views/components/dataEngine/hotTranslation.vue'),
|
||||
},
|
||||
{
|
||||
path: 'hotCloud',
|
||||
name: 'DataEngineHotCloud',
|
||||
meta: {
|
||||
locale: '行业词云',
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
component: () => import('@/views/components/dataEngine/hotCloud.vue'),
|
||||
},
|
||||
{
|
||||
path: 'keyWord',
|
||||
name: 'DataEngineKeyWord',
|
||||
meta: {
|
||||
locale: '行业关键词动向',
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
component: () => import('@/views/components/dataEngine/keyWord.vue'),
|
||||
},
|
||||
{
|
||||
path: 'userPainPoints',
|
||||
name: 'DataEngineUserPainPoints',
|
||||
meta: {
|
||||
locale: '用户痛点观察',
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
component: () => import('@/views/components/dataEngine/userPainPoints.vue'),
|
||||
},
|
||||
{
|
||||
path: 'keyBrandMovement',
|
||||
name: 'DataEngineKeyBrandMovement',
|
||||
meta: {
|
||||
locale: '重点品牌动向',
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
component: () => import('@/views/components/dataEngine/keyBrandMovement.vue'),
|
||||
},
|
||||
{
|
||||
path: 'userPersona',
|
||||
name: 'DataEngineUserPersona',
|
||||
meta: {
|
||||
locale: '用户画像',
|
||||
requiresAuth: true,
|
||||
requireLogin: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
component: () => import('@/views/components/dataEngine/userPersona.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
// const COMPONENTS: AppRouteRecordRaw[] = [
|
||||
// {
|
||||
// path: '/dataEngine',
|
||||
// name: 'DataEngine',
|
||||
// redirect: 'dataEngine/hotTranslation',
|
||||
// meta: {
|
||||
// locale: '全域数据引擎',
|
||||
// icon: IconBookmark,
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// id: MENU_GROUP_IDS.DATA_ENGINE_ID,
|
||||
// },
|
||||
// children: [
|
||||
// {
|
||||
// path: 'hotTranslation',
|
||||
// name: 'DataEngineHotTranslation',
|
||||
// meta: {
|
||||
// locale: '行业热门话题洞察',
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// },
|
||||
// component: () => import('@/views/components/dataEngine/hotTranslation.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'hotCloud',
|
||||
// name: 'DataEngineHotCloud',
|
||||
// meta: {
|
||||
// locale: '行业词云',
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// },
|
||||
// component: () => import('@/views/components/dataEngine/hotCloud.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'keyWord',
|
||||
// name: 'DataEngineKeyWord',
|
||||
// meta: {
|
||||
// locale: '行业关键词动向',
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// },
|
||||
// component: () => import('@/views/components/dataEngine/keyWord.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'userPainPoints',
|
||||
// name: 'DataEngineUserPainPoints',
|
||||
// meta: {
|
||||
// locale: '用户痛点观察',
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// },
|
||||
// component: () => import('@/views/components/dataEngine/userPainPoints.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'keyBrandMovement',
|
||||
// name: 'DataEngineKeyBrandMovement',
|
||||
// meta: {
|
||||
// locale: '重点品牌动向',
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// },
|
||||
// component: () => import('@/views/components/dataEngine/keyBrandMovement.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'userPersona',
|
||||
// name: 'DataEngineUserPersona',
|
||||
// meta: {
|
||||
// locale: '用户画像',
|
||||
// requiresAuth: true,
|
||||
// requireLogin: true,
|
||||
// roles: ['*'],
|
||||
// },
|
||||
// component: () => import('@/views/components/dataEngine/userPersona.vue'),
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// ];
|
||||
|
||||
export default COMPONENTS;
|
||||
// export default COMPONENTS;
|
||||
|
||||
@ -147,7 +147,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
||||
},
|
||||
{
|
||||
path: 'detail/:id',
|
||||
name: 'guideDetail',
|
||||
name: 'PutAccountInvestmentGuidelinesDetail',
|
||||
meta: {
|
||||
locale: '投放指南详情',
|
||||
requiresAuth: true,
|
||||
|
||||
Reference in New Issue
Block a user