perf: 稿件审核路由调整

This commit is contained in:
rd
2025-08-05 11:15:24 +08:00
parent f6e4bdea09
commit e8f2e561f5
4 changed files with 7 additions and 2 deletions

View File

@ -88,7 +88,6 @@ export default {
const togglePlay = () => {
if (!videoRef.value) return;
console.log('togglePlay', videoRef.value);
if (isPlaying.value) {
videoRef.value.pause();
} else {
@ -138,6 +137,12 @@ export default {
onMounted(() => {
workId && getData();
});
onBeforeUnmount(() => {
if (videoRef.value) {
videoRef.value.pause();
videoRef.value = null;
}
});
return () => (
<Spin loading={loading.value} class="manuscript-detail-wrap" size={50}>