mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
fix video collect detail
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<NConfigProvider :theme-overrides="themeOverrides" :theme="theme" style="height: 100vh" :locale="zhCN" :date-locale="dateZhCN">
|
<NConfigProvider
|
||||||
|
:theme-overrides="themeOverrides"
|
||||||
|
:theme="theme"
|
||||||
|
style="height: 100vh"
|
||||||
|
:locale="zhCN"
|
||||||
|
:date-locale="dateZhCN"
|
||||||
|
>
|
||||||
<NMessageProvider>
|
<NMessageProvider>
|
||||||
<NNotificationProvider>
|
<NNotificationProvider>
|
||||||
<NDialogProvider>
|
<NDialogProvider>
|
||||||
@@ -58,7 +64,7 @@ import TempComponent from './components/TempComponent.vue'
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
const layout = computed(() => {
|
const layout = computed(() => {
|
||||||
if (route.path.startsWith('/user')) {
|
if (route.path.startsWith('/user') || route.name == 'user' || route.path.startsWith('/@')) {
|
||||||
document.title = route.meta.title + ' · ' + route.params.id + ' · VTsuru'
|
document.title = route.meta.title + ' · ' + route.params.id + ' · VTsuru'
|
||||||
return 'viewer'
|
return 'viewer'
|
||||||
} else if (route.path.startsWith('/manage')) {
|
} else if (route.path.startsWith('/manage')) {
|
||||||
|
|||||||
@@ -86,9 +86,14 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
manage,
|
manage,
|
||||||
user,
|
|
||||||
obs,
|
obs,
|
||||||
open_live,
|
open_live,
|
||||||
|
{
|
||||||
|
path: '/@:id',
|
||||||
|
name: 'user',
|
||||||
|
alias: '/user/:id',
|
||||||
|
children: user,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/:pathMatch(.*)*',
|
path: '/:pathMatch(.*)*',
|
||||||
name: 'notfound',
|
name: 'notfound',
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ export default //管理页面
|
|||||||
component: () => import('@/views/manage/VideoCollectDetailView.vue'),
|
component: () => import('@/views/manage/VideoCollectDetailView.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '详情 · 视频征集',
|
title: '详情 · 视频征集',
|
||||||
keepAlive: true,
|
|
||||||
parent: 'manage-videoCollect',
|
parent: 'manage-videoCollect',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
export default {
|
export default [
|
||||||
path: '/user/:id',
|
|
||||||
name: 'user',
|
|
||||||
children: [
|
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'user-index',
|
name: 'user-index',
|
||||||
@@ -58,5 +55,4 @@ export default {
|
|||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
]
|
||||||
}
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const replyMessage = ref()
|
|||||||
const showSettingCard = ref(true)
|
const showSettingCard = ref(true)
|
||||||
|
|
||||||
const shareCardRef = ref()
|
const shareCardRef = ref()
|
||||||
const shareUrl = computed(() => 'https://vtsuru.live/user/' + accountInfo.value?.name + '/question-box')
|
const shareUrl = computed(() => 'https://vtsuru.live/@' + accountInfo.value?.name + '/question-box')
|
||||||
|
|
||||||
let isRevieveGetted = false
|
let isRevieveGetted = false
|
||||||
let isSendGetted = false
|
let isSendGetted = false
|
||||||
|
|||||||
Reference in New Issue
Block a user