修复我的喜欢跳转视频详情进去走的历史记录问题,公共配置全部放到store/common.js下
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user