mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-10 20:36:55 +08:00
feat: 添加弹幕投票相关功能, 修复礼物兑换外部链接bug
- 在api-models.ts中定义弹幕投票相关类型 - 在constants.ts中添加VOTE_API_URL常量 - 在路由中添加弹幕投票管理和OBS视图 - 更新组件以支持弹幕投票功能
This commit is contained in:
@@ -144,6 +144,16 @@ export default //管理页面
|
||||
isNew: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'vote',
|
||||
name: 'manage-danmakuVote',
|
||||
component: () => import('@/views/open_live/DanmakuVote.vue'),
|
||||
meta: {
|
||||
title: '弹幕投票',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'live',
|
||||
name: 'manage-live',
|
||||
|
||||
@@ -74,6 +74,15 @@ export default {
|
||||
title: '弹幕姬',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'danmaku-vote',
|
||||
name: 'obs-danmaku-vote',
|
||||
component: () => import('@/views/obs/DanmakuVoteOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕投票',
|
||||
forceReload: true,
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user