修复我的喜欢跳转视频详情进去走的历史记录问题,公共配置全部放到store/common.js下

This commit is contained in:
2025-01-14 10:13:05 +08:00
parent 781783a665
commit 66236012c9
4 changed files with 33 additions and 18 deletions

View File

@@ -1,14 +1,14 @@
<template>
<view class="min-page">
<my-video-list ref="refVideoList" v-if="state.list.length" @swiperChange="swiperChange" :list="state.list"
:options="options"
@update="update" :info="state"></my-video-list>
</view>
</template>
<script setup>
import {
onLoad,
onLoad,onHide,
onShow
} from '@dcloudio/uni-app'
import * as Api from '@/api/video/index.js'
@@ -22,7 +22,9 @@
const sysInfo = uni.getSystemInfoSync()
let isFirstLoad = true
let options = {}
let options = {
courseDetailsId:''
}
const state = reactive({
collect: 0,
current: {},
@@ -60,6 +62,7 @@
}
onLoad((opt) => {
Object.assign(options, opt)
console.log(options);
init()
})