export const settings = { mode: 'history', base: process.env.BASE_URL, scrollBehavior() { return { x: 0, y: 0 } }, routes: [{ path: '/', name: 'home', component: () => import('@/views/Home.vue'), meta: { pageTitle: '首頁', breadcrumb: [{ text: '首頁', active: true, }, ], }, }, { path: '/activityList', name: 'activityList', component: () => import('@/views/lottery/Activities/ActivityList.vue'), meta: { pageTitle: '活動列表', breadcrumb: [{ text: '活動列表', active: true, }, ], requiresAuth: false, }, }, { path: '/activityPage/:activity_id', name: 'activityPage', component: () => import('@/views/lottery/Activities/ActivityPage.vue'), meta: { pageTitle: '活動功能頁面', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', active: true, }, ], requiresAuth: false, }, }, { path: '/activityStore', name: 'activityStore', component: () => import('@/views/lottery/Activities/ActivityStore.vue'), meta: { pageTitle: '新增活動', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '新增活動', active: true, }, ], requiresAuth: true, }, }, { path: '/activityUpdate/:activity_id', name: 'activityUpdate', component: () => import('@/views/lottery/Activities/ActivityUpdate.vue'), meta: { pageTitle: '編輯活動資訊', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '編輯活動資訊', active: true, }, ], requiresAuth: true, }, }, { path: '/claim/:activity_id', name: 'claim', component: () => import('@/views/lottery/PrizeClaim.vue'), meta: { pageTitle: '兌獎', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '兌獎', active: true, }, ], requiresAuth: true, }, }, { path: '/prizeList/:activity_id?', name: 'prizeList', component: () => import('@/views/lottery/PrizeList.vue'), meta: { layout: 'full', pageTitle: '中獎清單', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '中獎清單', active: true, }, ], requiresAuth: false, }, }, { path: '/slot/:activity_id', name: 'slot', component: () => import('@/views/lottery/Slot.vue'), meta: { layout: 'full', pageTitle: 'slot', requiresAuth: true, }, }, { path: '/slotManager/:activity_id', name: 'slotManager', component: () => import('@/views/lottery/SlotManager.vue'), meta: { pageTitle: '抽獎管理', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '抽獎管理', active: true, }, ], requiresAuth: true, }, }, { path: '/randomTest/:activity_id', name: 'randomTest', component: () => import('@/views/lottery/RandomTest.vue'), meta: { pageTitle: '亂數測試', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '亂數測試', active: true, }, ], requiresAuth: true, }, }, { path: '/permission', name: 'permission', component: () => import('@/views/permission.vue'), meta: { pageTitle: '權限', breadcrumb: [{ text: '權限', active: true, }, ], requiresAuth: true, }, }, { path: '/login', name: 'login', component: () => import('@/views/Login.vue'), meta: { layout: 'full', }, }, { path: '/not-authorized', name: 'not-authorized', component: () => import('@/views/error/NotAuthorized.vue'), meta: { layout: 'full', }, }, { path: '/error-404', name: 'error-404', component: () => import('@/views/error/Error404.vue'), meta: { layout: 'full', }, }, { path: '*', redirect: 'error-404', }, { path: '/draw/:activity_id', name: 'draw', component: () => import('@/views/lottery/Draw.vue'), meta: { pageTitle: '抽獎', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '抽獎', active: true, }, ], }, }, { path: '/checkin/:activity_id', name: 'checkin', component: () => import('@/views/lottery/CheckIn.vue'), meta: { pageTitle: '報到系統', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '報到系統', active: true, }, ], requiresAuth: true, }, }, { path: '/search/:activity_id', name: 'search', component: () => import('@/views/lottery/Search.vue'), meta: { pageTitle: '查詢系統', breadcrumb: [{ text: '活動列表', to: '/activityList' }, { text: '活動功能頁面', to: '/activityPage' }, { text: '查詢系統', active: true, }, ], requiresAuth: false, }, }, ], } export const _ = undefined