mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-10 20:36:55 +08:00
chore: format code style and update linting configuration
This commit is contained in:
@@ -5,63 +5,63 @@ export default {
|
||||
{
|
||||
path: '',
|
||||
name: 'client-index',
|
||||
component: () => import('@/client/ClientIndex.vue'),
|
||||
component: async () => import('@/client/ClientIndex.vue'),
|
||||
meta: {
|
||||
title: '首页',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'fetcher',
|
||||
name: 'client-fetcher',
|
||||
component: () => import('@/client/ClientFetcher.vue'),
|
||||
component: async () => import('@/client/ClientFetcher.vue'),
|
||||
meta: {
|
||||
title: 'EventFetcher',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
name: 'client-settings',
|
||||
component: () => import('@/client/ClientSettings.vue'),
|
||||
component: async () => import('@/client/ClientSettings.vue'),
|
||||
meta: {
|
||||
title: '设置',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'danmaku-window-manage',
|
||||
name: 'client-danmaku-window-manage',
|
||||
component: () => import('@/client/DanmakuWindowManager.vue'),
|
||||
component: async () => import('@/client/DanmakuWindowManager.vue'),
|
||||
meta: {
|
||||
title: '弹幕窗口管理',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'auto-action',
|
||||
name: 'client-auto-action-manage',
|
||||
component: () => import('@/client/ClientAutoAction.vue'),
|
||||
component: async () => import('@/client/ClientAutoAction.vue'),
|
||||
meta: {
|
||||
title: '自动操作管理',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'danmaku-window',
|
||||
name: 'client-danmaku-window-redirect',
|
||||
redirect: {
|
||||
name: 'client-danmaku-window'
|
||||
}
|
||||
name: 'client-danmaku-window',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'test',
|
||||
name: 'client-test',
|
||||
component: () => import('@/client/ClientTest.vue'),
|
||||
component: async () => import('@/client/ClientTest.vue'),
|
||||
meta: {
|
||||
title: '测试',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
]
|
||||
],
|
||||
}
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import { useLoadingBarStore } from '@/store/useLoadingBarStore'
|
||||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
|
||||
import IndexView from '../views/IndexView.vue'
|
||||
import client from './client'
|
||||
import manage from './manage'
|
||||
import user from './user'
|
||||
import obs from './obs'
|
||||
import obs_store from './obs_store'
|
||||
import open_live from './open_live'
|
||||
import singlePage from './singlePage'
|
||||
import client from './client';
|
||||
import obs_store from './obs_store'
|
||||
import user from './user'
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
@@ -21,7 +22,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/verify',
|
||||
name: 'verify',
|
||||
component: () => import('@/views/VerifyView.vue'),
|
||||
component: async () => import('@/views/VerifyView.vue'),
|
||||
meta: {
|
||||
title: '认证',
|
||||
},
|
||||
@@ -29,7 +30,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/about',
|
||||
name: 'about',
|
||||
component: () => import('@/views/AboutView.vue'),
|
||||
component: async () => import('@/views/AboutView.vue'),
|
||||
meta: {
|
||||
title: '关于',
|
||||
},
|
||||
@@ -37,7 +38,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/reset-password',
|
||||
name: 'resetPassword',
|
||||
component: () => import('@/views/ChangePasswordView.vue'),
|
||||
component: async () => import('@/views/ChangePasswordView.vue'),
|
||||
meta: {
|
||||
title: '重置密码',
|
||||
},
|
||||
@@ -45,7 +46,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/video-collect/:id',
|
||||
name: 'video-collect',
|
||||
component: () => import('@/views/VideoCollectPublic.vue'),
|
||||
component: async () => import('@/views/VideoCollectPublic.vue'),
|
||||
meta: {
|
||||
title: '推荐 · 视频征集',
|
||||
keepAlive: true,
|
||||
@@ -54,7 +55,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/video-collect/list/:id',
|
||||
name: 'video-collect-list',
|
||||
component: () => import('@/views/VideoCollectListView.vue'),
|
||||
component: async () => import('@/views/VideoCollectListView.vue'),
|
||||
meta: {
|
||||
title: '结果 · 视频征集',
|
||||
keepAlive: true,
|
||||
@@ -63,7 +64,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/feedback',
|
||||
name: 'feedback',
|
||||
component: () => import('@/views/ViewerFeedbackView.vue'),
|
||||
component: async () => import('@/views/ViewerFeedbackView.vue'),
|
||||
meta: {
|
||||
title: '反馈',
|
||||
keepAlive: true,
|
||||
@@ -72,7 +73,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/bili-auth',
|
||||
name: 'bili-auth',
|
||||
component: () => import('@/views/BiliAuthView.vue'),
|
||||
component: async () => import('@/views/BiliAuthView.vue'),
|
||||
meta: {
|
||||
title: 'Bilibili 账户认证',
|
||||
keepAlive: true,
|
||||
@@ -81,7 +82,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/bili-user',
|
||||
name: 'bili-user',
|
||||
component: () => import('@/views/pointViews/PointUserLayout.vue'),
|
||||
component: async () => import('@/views/pointViews/PointUserLayout.vue'),
|
||||
meta: {
|
||||
title: 'Bilibili 账户',
|
||||
keepAlive: true,
|
||||
@@ -101,7 +102,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'notfound',
|
||||
component: () => import('@/views/NotfoundView.vue'),
|
||||
component: async () => import('@/views/NotfoundView.vue'),
|
||||
meta: {
|
||||
title: '页面不存在',
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default //管理页面
|
||||
export default // 管理页面
|
||||
{
|
||||
path: '/manage',
|
||||
name: 'manage',
|
||||
@@ -6,230 +6,230 @@ export default //管理页面
|
||||
{
|
||||
path: '',
|
||||
name: 'manage-index',
|
||||
component: () => import('@/views/manage/DashboardView.vue'),
|
||||
component: async () => import('@/views/manage/DashboardView.vue'),
|
||||
meta: {
|
||||
title: '面板'
|
||||
}
|
||||
title: '面板',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'song-list',
|
||||
name: 'manage-songList',
|
||||
component: () => import('@/views/manage/SongListManageView.vue'),
|
||||
component: async () => import('@/views/manage/SongListManageView.vue'),
|
||||
meta: {
|
||||
title: '歌单',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'question-box',
|
||||
name: 'manage-questionBox',
|
||||
component: () => import('@/views/manage/QuestionBoxManageView.vue'),
|
||||
component: async () => import('@/views/manage/QuestionBoxManageView.vue'),
|
||||
meta: {
|
||||
title: '提问箱',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'lottery',
|
||||
name: 'manage-lottery',
|
||||
component: () => import('@/views/manage/LotteryView.vue'),
|
||||
component: async () => import('@/views/manage/LotteryView.vue'),
|
||||
meta: {
|
||||
title: '动态抽奖',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'history',
|
||||
name: 'manage-history',
|
||||
component: () => import('@/views/manage/HistoryView.vue'),
|
||||
component: async () => import('@/views/manage/HistoryView.vue'),
|
||||
meta: {
|
||||
title: '数据跟踪',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'schedule',
|
||||
name: 'manage-schedule',
|
||||
component: () => import('@/views/manage/ScheduleManageView.vue'),
|
||||
component: async () => import('@/views/manage/ScheduleManageView.vue'),
|
||||
meta: {
|
||||
title: '日程',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'event',
|
||||
name: 'manage-event',
|
||||
component: () => import('@/views/manage/EventView.vue'),
|
||||
component: async () => import('@/views/manage/EventView.vue'),
|
||||
meta: {
|
||||
title: '事件记录',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'video-collect',
|
||||
name: 'manage-videoCollect',
|
||||
component: () => import('@/views/manage/VideoCollectManageView.vue'),
|
||||
component: async () => import('@/views/manage/VideoCollectManageView.vue'),
|
||||
meta: {
|
||||
title: '视频征集',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'video-collect/:id',
|
||||
name: 'manage-videoCollect-Detail',
|
||||
component: () => import('@/views/manage/VideoCollectDetailView.vue'),
|
||||
component: async () => import('@/views/manage/VideoCollectDetailView.vue'),
|
||||
meta: {
|
||||
title: '详情 · 视频征集',
|
||||
parent: 'manage-videoCollect'
|
||||
}
|
||||
parent: 'manage-videoCollect',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'live-lottery',
|
||||
name: 'manage-liveLottery',
|
||||
component: () => import('@/views/open_live/OpenLottery.vue'),
|
||||
component: async () => import('@/views/open_live/OpenLottery.vue'),
|
||||
meta: {
|
||||
title: '直播抽奖',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'obs-store',
|
||||
name: 'manage-obsStore',
|
||||
component: () => import('@/views/obs_store/OBSComponentStoreView.vue'),
|
||||
component: async () => import('@/views/obs_store/OBSComponentStoreView.vue'),
|
||||
meta: {
|
||||
title: 'OBS组件库',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'queue',
|
||||
name: 'manage-liveQueue',
|
||||
component: () => import('@/views/open_live/OpenQueue.vue'),
|
||||
component: async () => import('@/views/open_live/OpenQueue.vue'),
|
||||
meta: {
|
||||
title: '排队',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'speech',
|
||||
name: 'manage-speech',
|
||||
component: () => import('@/views/open_live/ReadDanmaku.vue'),
|
||||
component: async () => import('@/views/open_live/ReadDanmaku.vue'),
|
||||
meta: {
|
||||
title: '读弹幕',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'live-request',
|
||||
name: 'manage-liveRequest',
|
||||
component: () => import('@/views/open_live/LiveRequest.vue'),
|
||||
component: async () => import('@/views/open_live/LiveRequest.vue'),
|
||||
meta: {
|
||||
title: '点播',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'music-request',
|
||||
name: 'manage-musicRequest',
|
||||
component: () => import('@/views/open_live/MusicRequest.vue'),
|
||||
component: async () => import('@/views/open_live/MusicRequest.vue'),
|
||||
meta: {
|
||||
title: '点歌',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'danmuji',
|
||||
name: 'manage-danmuji',
|
||||
component: () => import('@/views/manage/DanmujiManageView.vue'),
|
||||
component: async () => import('@/views/manage/DanmujiManageView.vue'),
|
||||
meta: {
|
||||
title: '弹幕姬',
|
||||
keepAlive: true,
|
||||
danmaku: true,
|
||||
isNew: true
|
||||
}
|
||||
isNew: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'vote',
|
||||
name: 'manage-danmakuVote',
|
||||
component: () => import('@/views/open_live/DanmakuVote.vue'),
|
||||
component: async () => import('@/views/open_live/DanmakuVote.vue'),
|
||||
meta: {
|
||||
title: '弹幕投票',
|
||||
keepAlive: true,
|
||||
danmaku: true
|
||||
}
|
||||
danmaku: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'live',
|
||||
name: 'manage-live',
|
||||
component: () => import('@/views/manage/LiveManager.vue'),
|
||||
component: async () => import('@/views/manage/LiveManager.vue'),
|
||||
meta: {
|
||||
title: '直播记录',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'live/:id',
|
||||
name: 'manage-liveDetail',
|
||||
component: () => import('@/views/manage/LiveDetailManage.vue'),
|
||||
component: async () => import('@/views/manage/LiveDetailManage.vue'),
|
||||
meta: {
|
||||
title: '直播详情'
|
||||
}
|
||||
title: '直播详情',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'feedback',
|
||||
name: 'manage-feedback',
|
||||
component: () => import('@/views/FeedbackManage.vue'),
|
||||
component: async () => import('@/views/FeedbackManage.vue'),
|
||||
meta: {
|
||||
title: '反馈'
|
||||
}
|
||||
title: '反馈',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'point',
|
||||
name: 'manage-point',
|
||||
component: () => import('@/views/manage/point/PointManage.vue'),
|
||||
component: async () => import('@/views/manage/point/PointManage.vue'),
|
||||
meta: {
|
||||
title: '积分'
|
||||
}
|
||||
title: '积分',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'forum',
|
||||
name: 'manage-forum',
|
||||
component: () => import('@/views/manage/ForumManage.vue'),
|
||||
component: async () => import('@/views/manage/ForumManage.vue'),
|
||||
meta: {
|
||||
title: '粉丝讨论区'
|
||||
}
|
||||
title: '粉丝讨论区',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'analyze',
|
||||
name: 'manage-analyze',
|
||||
component: () => import('@/views/manage/AnalyzeView.vue'),
|
||||
component: async () => import('@/views/manage/AnalyzeView.vue'),
|
||||
meta: {
|
||||
title: '数据分析'
|
||||
}
|
||||
title: '数据分析',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'tools',
|
||||
name: 'manage-tools-dashboard',
|
||||
component: () => import('@/views/manage/ToolsDashboardView.vue'),
|
||||
component: async () => import('@/views/manage/ToolsDashboardView.vue'),
|
||||
meta: {
|
||||
title: '直播工具箱',
|
||||
keepAlive: true
|
||||
}
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'tools/dynamic-nine-grid',
|
||||
name: 'ManageToolDynamicNineGrid',
|
||||
component: () => import('@/views/manage/tools/ToolDynamicNineGrid.vue'),
|
||||
component: async () => import('@/views/manage/tools/ToolDynamicNineGrid.vue'),
|
||||
meta: {
|
||||
title: '动态九图生成器',
|
||||
parent: 'manage-tools-dashboard' // 指向工具箱仪表盘
|
||||
}
|
||||
}
|
||||
]
|
||||
parent: 'manage-tools-dashboard', // 指向工具箱仪表盘
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -5,84 +5,84 @@ export default {
|
||||
{
|
||||
path: 'live-lottery',
|
||||
name: 'obs-live-lottery',
|
||||
component: () => import('@/views/obs/LiveLotteryOBS.vue'),
|
||||
component: async () => import('@/views/obs/LiveLotteryOBS.vue'),
|
||||
meta: {
|
||||
title: '直播抽奖',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'live-request',
|
||||
name: 'obs-live-request',
|
||||
alias: 'song-request',
|
||||
component: () => import('@/views/obs/LiveRequestOBS.vue'),
|
||||
component: async () => import('@/views/obs/LiveRequestOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕点播',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'live-request-today',
|
||||
name: 'obs-live-request-today',
|
||||
component: () => import('@/views/obs/LiveRequestProcessedOBS.vue'),
|
||||
component: async () => import('@/views/obs/LiveRequestProcessedOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕点播-今日',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'queue',
|
||||
name: 'obs-queue',
|
||||
component: () => import('@/views/obs/QueueOBS.vue'),
|
||||
component: async () => import('@/views/obs/QueueOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕排队',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'music-request',
|
||||
name: 'obs-music-request',
|
||||
component: () => import('@/views/obs/MusicRequestOBS.vue'),
|
||||
component: async () => import('@/views/obs/MusicRequestOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕排队 (播放列表)',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'question-display',
|
||||
name: 'obs-question-display',
|
||||
component: () => import('@/views/obs/QuestionDisplayOBS.vue'),
|
||||
component: async () => import('@/views/obs/QuestionDisplayOBS.vue'),
|
||||
meta: {
|
||||
title: '棉花糖展示',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'web-fetcher',
|
||||
name: 'obs-web-fetcher',
|
||||
component: () => import('@/views/obs/WebFetcherOBS.vue'),
|
||||
component: async () => import('@/views/obs/WebFetcherOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕收集器 (OBS版)',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'danmuji',
|
||||
name: 'obs-danmuji',
|
||||
component: () => import('@/views/obs/DanmujiOBS.vue'),
|
||||
component: async () => import('@/views/obs/DanmujiOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕姬',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'danmaku-vote',
|
||||
name: 'obs-danmaku-vote',
|
||||
component: () => import('@/views/obs/DanmakuVoteOBS.vue'),
|
||||
component: async () => import('@/views/obs/DanmakuVoteOBS.vue'),
|
||||
meta: {
|
||||
title: '弹幕投票',
|
||||
forceReload: true,
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -5,20 +5,20 @@ export default {
|
||||
{
|
||||
path: 'gamepad-manage',
|
||||
name: 'obs-store-gamepad-manage',
|
||||
component: () => import('@/views/obs_store/components/gamepads/GamepadViewer.vue'),
|
||||
component: async () => import('@/views/obs_store/components/gamepads/GamepadViewer.vue'),
|
||||
meta: {
|
||||
title: '游戏手柄',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'gamepad',
|
||||
name: 'obs-store-gamepad-display',
|
||||
component: () => import('@/views/obs_store/components/gamepads/GamepadDisplay.vue'),
|
||||
component: async () => import('@/views/obs_store/components/gamepads/GamepadDisplay.vue'),
|
||||
meta: {
|
||||
title: '手柄显示',
|
||||
forceReload: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ export default {
|
||||
{
|
||||
path: '',
|
||||
name: 'open-live-index',
|
||||
component: () => import('@/views/open_live/OpenLiveIndex.vue'),
|
||||
component: async () => import('@/views/open_live/OpenLiveIndex.vue'),
|
||||
meta: {
|
||||
title: '开放平台',
|
||||
},
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
{
|
||||
path: 'lottery',
|
||||
name: 'open-live-lottery',
|
||||
component: () => import('@/views/open_live/OpenLottery.vue'),
|
||||
component: async () => import('@/views/open_live/OpenLottery.vue'),
|
||||
meta: {
|
||||
title: '直播抽奖',
|
||||
},
|
||||
@@ -21,7 +21,7 @@ export default {
|
||||
{
|
||||
path: 'live-request',
|
||||
name: 'open-live-live-request',
|
||||
component: () => import('@/views/open_live/LiveRequest.vue'),
|
||||
component: async () => import('@/views/open_live/LiveRequest.vue'),
|
||||
meta: {
|
||||
title: '点歌',
|
||||
},
|
||||
@@ -29,7 +29,7 @@ export default {
|
||||
{
|
||||
path: 'queue',
|
||||
name: 'open-live-queue',
|
||||
component: () => import('@/views/open_live/OpenQueue.vue'),
|
||||
component: async () => import('@/views/open_live/OpenQueue.vue'),
|
||||
meta: {
|
||||
title: '排队',
|
||||
},
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
{
|
||||
path: 'speech',
|
||||
name: 'open-live-speech',
|
||||
component: () => import('@/views/open_live/ReadDanmaku.vue'),
|
||||
component: async () => import('@/views/open_live/ReadDanmaku.vue'),
|
||||
meta: {
|
||||
title: '读弹幕',
|
||||
},
|
||||
|
||||
@@ -2,27 +2,27 @@ export default [
|
||||
{
|
||||
path: '/question-display',
|
||||
name: 'question-display',
|
||||
component: () => import('@/views/single/QuestionDisplay.vue'),
|
||||
component: async () => import('@/views/single/QuestionDisplay.vue'),
|
||||
meta: {
|
||||
title: '棉花糖展示页'
|
||||
}
|
||||
title: '棉花糖展示页',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/playground/test',
|
||||
name: 'test',
|
||||
component: () => import('@/views/TestView.vue'),
|
||||
component: async () => import('@/views/TestView.vue'),
|
||||
meta: {
|
||||
title: '测试页'
|
||||
}
|
||||
title: '测试页',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/danmaku-window',
|
||||
name: 'client-danmaku-window',
|
||||
component: () => import('@/client/ClientDanmakuWindow.vue'),
|
||||
component: async () => import('@/client/ClientDanmakuWindow.vue'),
|
||||
meta: {
|
||||
title: '弹幕窗口',
|
||||
ignoreLogin: true,
|
||||
forceReload: true,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
@@ -2,7 +2,7 @@ export default [
|
||||
{
|
||||
path: '',
|
||||
name: 'user-index',
|
||||
component: () => import('@/views/view/UserIndexView.vue'),
|
||||
component: async () => import('@/views/view/UserIndexView.vue'),
|
||||
meta: {
|
||||
title: '主页',
|
||||
keepAlive: true,
|
||||
@@ -11,7 +11,7 @@ export default [
|
||||
{
|
||||
path: 'song-list',
|
||||
name: 'user-songList',
|
||||
component: () => import('@/views/view/SongListView.vue'),
|
||||
component: async () => import('@/views/view/SongListView.vue'),
|
||||
meta: {
|
||||
title: '歌单',
|
||||
keepAlive: true,
|
||||
@@ -20,7 +20,7 @@ export default [
|
||||
{
|
||||
path: 'question-box',
|
||||
name: 'user-questionBox',
|
||||
component: () => import('@/views/view/QuestionBoxView.vue'),
|
||||
component: async () => import('@/views/view/QuestionBoxView.vue'),
|
||||
meta: {
|
||||
title: '提问箱',
|
||||
keepAlive: true,
|
||||
@@ -29,7 +29,7 @@ export default [
|
||||
{
|
||||
path: 'schedule',
|
||||
name: 'user-schedule',
|
||||
component: () => import('@/views/view/ScheduleView.vue'),
|
||||
component: async () => import('@/views/view/ScheduleView.vue'),
|
||||
meta: {
|
||||
title: '日程',
|
||||
keepAlive: true,
|
||||
@@ -38,10 +38,10 @@ export default [
|
||||
{
|
||||
path: 'ics',
|
||||
name: 'user-schedule-ics',
|
||||
component: () => import('@/views/view/ScheduleView.vue'),
|
||||
component: async () => import('@/views/view/ScheduleView.vue'),
|
||||
beforeEnter(to: any) {
|
||||
// 直接重定向到外部 URL
|
||||
window.location.href = 'https://vtsuru.live/api/schedule/get-ics?id=' + to.query.id
|
||||
window.location.href = `https://vtsuru.live/api/schedule/get-ics?id=${to.query.id}`
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -50,7 +50,7 @@ export default [
|
||||
path: 'goods',
|
||||
name: 'user-goods',
|
||||
alias: 'point',
|
||||
component: () => import('@/views/pointViews/PointGoodsView.vue'),
|
||||
component: async () => import('@/views/pointViews/PointGoodsView.vue'),
|
||||
meta: {
|
||||
title: '积分兑换',
|
||||
keepAlive: true,
|
||||
@@ -59,7 +59,7 @@ export default [
|
||||
{
|
||||
path: 'check-in',
|
||||
name: 'user-checkin',
|
||||
component: () => import('@/views/view/CheckInRankingView.vue'),
|
||||
component: async () => import('@/views/view/CheckInRankingView.vue'),
|
||||
meta: {
|
||||
title: '签到排行',
|
||||
keepAlive: true,
|
||||
@@ -68,7 +68,7 @@ export default [
|
||||
{
|
||||
path: 'video-collect',
|
||||
name: 'user-video-collect',
|
||||
component: () => import('@/views/view/VideoCollectView.vue'),
|
||||
component: async () => import('@/views/view/VideoCollectView.vue'),
|
||||
meta: {
|
||||
title: '视频征集',
|
||||
keepAlive: true,
|
||||
@@ -77,7 +77,7 @@ export default [
|
||||
{
|
||||
path: 'forum/topic/:topicId',
|
||||
name: 'user-forum-topic-detail',
|
||||
component: () => import('@/views/view/forumViews/ForumTopicDetail.vue'),
|
||||
component: async () => import('@/views/view/forumViews/ForumTopicDetail.vue'),
|
||||
meta: {
|
||||
title: '帖子详情',
|
||||
keepAlive: true,
|
||||
@@ -86,7 +86,7 @@ export default [
|
||||
{
|
||||
path: 'forum',
|
||||
name: 'user-forum',
|
||||
component: () => import('@/views/view/forumViews/ForumView.vue'),
|
||||
component: async () => import('@/views/view/forumViews/ForumView.vue'),
|
||||
meta: {
|
||||
title: '讨论区',
|
||||
keepAlive: true,
|
||||
|
||||
Reference in New Issue
Block a user