feat(route): update routes

This commit is contained in:
woody 2025-05-27 15:19:03 +08:00
parent 43996ed250
commit f9d4c7c318
3 changed files with 9 additions and 3 deletions

View File

@ -73,6 +73,7 @@ export default {
return new Promise((resolve) => {
getRouters().then((res) => {
this.rolaMenu = this.getName(res.data)
console.log(this.rolaMenu, 'this.rolaMenu')
resolve(res)
})
})

View File

@ -8,7 +8,7 @@ import Vue from 'vue'
import Router from 'vue-router'
import i18n from '@/assets/i18n/index'
Vue.use(Router)
import { tickets } from './module/tickets'
/* Layout */
import Layout from '@/layout'
import ParentView from '@/components/ParentView'
@ -1820,6 +1820,7 @@ export const constantRoutes = [
name: 'Activity',
meta: { title: '营销管理', icon: 'yx', icon1: 'yxSel' },
children: [
...tickets,
{
path: 'giftGoods',
name: 'GiftGoods',

View File

@ -4,12 +4,14 @@ export const tickets = [
path: 'ticket',
name: 'Ticket',
component: ParentView,
hidden: false,
children: [
{
path: 'ticketList',
name: 'TicketList',
component: () => import('@/views/marketing/ticket/index'),
meta: { title: '门票活动' }
meta: { title: '门票活动' },
hidden: false
},
{
path: 'addTicket',
@ -24,12 +26,14 @@ export const tickets = [
path: 'ticketQuery',
name: 'TicketQuery',
component: ParentView,
hidden: false,
children: [
{
path: 'ticketQueryList',
name: 'TickeQuerytList',
component: () => import('@/views/marketing/ticketQueryList/index'),
meta: { title: '自助购票' }
meta: { title: '自助购票' },
hidden: false
}
]
}