修复偶发性短剧详情视频页面未跳转到播放历史位置
This commit is contained in:
@@ -244,6 +244,7 @@
|
||||
})
|
||||
onMounted(() => {
|
||||
init()
|
||||
console.log('itemMounted',props.index);
|
||||
emits('itemMounted', props.index)
|
||||
})
|
||||
|
||||
|
||||
@@ -167,7 +167,8 @@
|
||||
} from '@/commons/config.js'
|
||||
import color from '@/commons/color.js'
|
||||
import {
|
||||
debounce,throttle
|
||||
debounce,
|
||||
throttle
|
||||
} from 'lodash';
|
||||
import * as Api from '@/api/video/index.js'
|
||||
import infoBox from '@/utils/infoBox.js'
|
||||
@@ -255,7 +256,7 @@
|
||||
const $mountedComponents = {}
|
||||
|
||||
function itemMounted(index) {
|
||||
// $mountedComponents[index]=true
|
||||
$mountedComponents[index]=true
|
||||
}
|
||||
|
||||
function back() {
|
||||
@@ -433,7 +434,8 @@
|
||||
console.log('goListPosition:' + index)
|
||||
const el = refList.value[index]
|
||||
if (initing) {
|
||||
if (!$mountedComponents[props.list.length - 1]) {
|
||||
console.log($mountedComponents);
|
||||
if (!$mountedComponents[index]) {
|
||||
positonmer = setTimeout(() => {
|
||||
goListPosition(index)
|
||||
}, 200)
|
||||
|
||||
Reference in New Issue
Block a user