diff --git a/pages/video/detail.nvue b/pages/video/detail.nvue index 8d43df7..2bff792 100644 --- a/pages/video/detail.nvue +++ b/pages/video/detail.nvue @@ -30,9 +30,19 @@ title: '' }) async function init() { - const res = await Api.getVideoDetail(options) - Object.assign(state, res) - state.list = res.list + try { + const res = await Api.getVideoDetail(options) + Object.assign(state, res) + state.list = res.list + } catch (error) { + // if(getCurrentPages().length>=2){ + // uni.navigateBack() + // }else{ + // uni.switchTab({ + // url:'/pages/index/index' + // }) + // } + } } function update({index,item}){ state.list[index]=item