mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
fix video collect detail
This commit is contained in:
@@ -25,6 +25,7 @@ const renderCountdown: CountdownProps['render'] = (info: { hours: number; minute
|
||||
}
|
||||
function onClick() {
|
||||
if (props.canClick == true) {
|
||||
console.log(props.item.id)
|
||||
router.push({ name: 'manage-videoCollect-Detail', params: { id: props.item.id } })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ import {
|
||||
useMessage,
|
||||
} from 'naive-ui'
|
||||
import Qrcode from 'qrcode.vue'
|
||||
import { VNode, computed, h, ref } from 'vue'
|
||||
import { VNode, computed, h, onActivated, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
const route = useRoute()
|
||||
@@ -358,6 +358,12 @@ function saveQRCode() {
|
||||
`vtsuru-视频征集二维码-${videoDetail.value.table.name}.png`,
|
||||
)
|
||||
}
|
||||
|
||||
onActivated(async () => {
|
||||
if (route.params.id != videoDetail.value.table.id) {
|
||||
videoDetail.value = await getData()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<NSpace>
|
||||
|
||||
Reference in New Issue
Block a user