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