perf: 稿件审核路由调整
This commit is contained in:
@ -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'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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}>
|
||||||
|
|||||||
Reference in New Issue
Block a user