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

@ -107,7 +107,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
hideInMenu: true, hideInMenu: true,
activeMenu: 'ManuscriptCheckList', activeMenu: 'ManuscriptCheckList',
}, },
component: () => import('@/views/creative-generation-workshop/manuscript-analysis/components/check/index.vue'), component: () => import('@/views/creative-generation-workshop/manuscript/check/index.vue'),
}, },
], ],
}, },

View File

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