mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-10 20:36:55 +08:00
add question display page
This commit is contained in:
@@ -5,6 +5,7 @@ import manage from './manage'
|
||||
import user from './user'
|
||||
import obs from './obs'
|
||||
import open_live from './open_live'
|
||||
import singlePage from './singlePage'
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
@@ -96,6 +97,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
title: '页面不存在',
|
||||
},
|
||||
},
|
||||
...singlePage,
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
@@ -106,7 +108,7 @@ router.beforeEach((to, from, next) => {
|
||||
useLoadingBarStore().loadingBar?.start()
|
||||
next()
|
||||
})
|
||||
router.afterEach((to, from) => {
|
||||
router.afterEach(() => {
|
||||
const loadingBar = useLoadingBarStore().loadingBar
|
||||
loadingBar?.finish()
|
||||
})
|
||||
|
||||
@@ -1,38 +1,46 @@
|
||||
export default {
|
||||
path: '/obs',
|
||||
name: 'obs',
|
||||
children: [
|
||||
{
|
||||
path: 'live-lottery',
|
||||
name: 'obs-live-lottery',
|
||||
component: () => import('@/views/obs/LiveLotteryOBS.vue'),
|
||||
meta: {
|
||||
title: '直播抽奖',
|
||||
},
|
||||
path: '/obs',
|
||||
name: 'obs',
|
||||
children: [
|
||||
{
|
||||
path: 'live-lottery',
|
||||
name: 'obs-live-lottery',
|
||||
component: () => import('@/views/obs/LiveLotteryOBS.vue'),
|
||||
meta: {
|
||||
title: '直播抽奖',
|
||||
},
|
||||
{
|
||||
path: 'song-request',
|
||||
name: 'obs-song-request',
|
||||
component: () => import('@/views/obs/SongRequestOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕点歌 (歌势',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'song-request',
|
||||
name: 'obs-song-request',
|
||||
component: () => import('@/views/obs/SongRequestOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕点歌 (歌势',
|
||||
},
|
||||
{
|
||||
path: 'queue',
|
||||
name: 'obs-queue',
|
||||
component: () => import('@/views/obs/QueueOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕排队',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'queue',
|
||||
name: 'obs-queue',
|
||||
component: () => import('@/views/obs/QueueOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕排队',
|
||||
},
|
||||
{
|
||||
path: 'music-request',
|
||||
name: 'obs-music-request',
|
||||
component: () => import('@/views/obs/MusicRequestOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕排队 (播放',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'music-request',
|
||||
name: 'obs-music-request',
|
||||
component: () => import('@/views/obs/MusicRequestOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕排队 (播放',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'question-display',
|
||||
name: 'obs-question-display',
|
||||
component: () => import('@/views/obs/QuestionDisplayOBS.vue'),
|
||||
meta: {
|
||||
title: '棉花糖展示',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
10
src/router/singlePage.ts
Normal file
10
src/router/singlePage.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export default [
|
||||
{
|
||||
path: '/question-display',
|
||||
name: 'question-display',
|
||||
component: () => import('@/views/single/QuestionDisplay.vue'),
|
||||
meta: {
|
||||
title: '棉花糖展示页',
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user