视频详情页面代码更新
This commit is contained in:
@@ -6,8 +6,19 @@
|
||||
|
||||
<script setup>
|
||||
import {onLoad,onShow} from '@dcloudio/uni-app'
|
||||
import * as Api from '@/api/video/index.js'
|
||||
let options={}
|
||||
onLoad((opt)=>{
|
||||
|
||||
Object.assign(options,opt)
|
||||
try {
|
||||
Api.getVideoDetail(options)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack()
|
||||
},500)
|
||||
//TODO handle the exception
|
||||
}
|
||||
})
|
||||
onShow(()=>{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user