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,
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 = () => {
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}>